	.file	"extr_qeth_core_main.c_qeth_ulp_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ulpsetup"
	.text
	.p2align 4
	.type	qeth_ulp_setup, @function
qeth_ulp_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdx, .LC0[rip]
	mov	esi, 2
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	QETH_CARD_TEXT@PLT
	mov	edx, DWORD PTR ULP_SETUP_SIZE[rip]
	mov	esi, DWORD PTR ULP_SETUP[rip]
	mov	rdi, rbp
	call	qeth_mpc_alloc_cmd@PLT
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR [rax]
	mov	r13d, DWORD PTR QETH_MPC_TOKEN_LENGTH[rip]
	mov	r12, rax
	call	QETH_ULP_SETUP_DEST_ADDR@PLT
	mov	edx, r13d
	lea	rsi, 32[rbp]
	mov	edi, eax
	call	memcpy@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13d, DWORD PTR QETH_MPC_TOKEN_LENGTH[rip]
	call	QETH_ULP_SETUP_CONNECTION_TOKEN@PLT
	mov	edx, r13d
	lea	rsi, 24[rbp]
	mov	edi, eax
	call	memcpy@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13d, DWORD PTR QETH_MPC_TOKEN_LENGTH[rip]
	call	QETH_ULP_SETUP_FILTER_TOKEN@PLT
	mov	edx, r13d
	lea	rsi, 16[rbp]
	lea	r13, 16[rsp]
	mov	edi, eax
	call	memcpy@PLT
	mov	rdi, rbp
	call	CARD_DDEV@PLT
	mov	rsi, r13
	mov	edi, eax
	call	ccw_device_get_id@PLT
	mov	edi, DWORD PTR [r12]
	call	QETH_ULP_SETUP_CUA@PLT
	mov	edx, 2
	mov	rsi, r13
	mov	edi, eax
	call	memcpy@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [r12]
	sal	eax, 8
	cdqe
	add	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rsp], rax
	call	QETH_ULP_SETUP_REAL_DEVADDR@PLT
	lea	rsi, 8[rsp]
	mov	edx, 2
	mov	edi, eax
	call	memcpy@PLT
	mov	edx, DWORD PTR qeth_ulp_setup_cb[rip]
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, rbp
	call	qeth_send_control_data@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qeth_ulp_setup, .-qeth_ulp_setup
	.comm	qeth_ulp_setup_cb,4,4
	.comm	ULP_SETUP_SIZE,4,4
	.comm	ULP_SETUP,4,4
	.comm	QETH_MPC_TOKEN_LENGTH,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_qeth_core_main.c_qeth_ulp_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ulpsetup\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_ulp_setup, %function
qeth_ulp_setup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L9
	sub	sp, sp, #16
	mov	r1, #2
	ldr	r2, .L9+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	QETH_CARD_TEXT
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	qeth_mpc_alloc_cmd
	subs	r5, r0, #0
	beq	.L7
	ldr	r6, .L9+16
	ldr	r0, [r5]
	bl	QETH_ULP_SETUP_DEST_ADDR
	ldr	r2, [r6]
	add	r1, r4, #16
	bl	memcpy
	ldr	r0, [r5]
	bl	QETH_ULP_SETUP_CONNECTION_TOKEN
	ldr	r2, [r6]
	add	r1, r4, #12
	bl	memcpy
	ldr	r0, [r5]
	bl	QETH_ULP_SETUP_FILTER_TOKEN
	ldr	r2, [r6]
	add	r1, r4, #8
	bl	memcpy
	mov	r0, r4
	bl	CARD_DDEV
	add	r1, sp, #8
	bl	ccw_device_get_id
	ldr	r0, [r5]
	bl	QETH_ULP_SETUP_CUA
	add	r1, sp, #8
	mov	r2, #2
	bl	memcpy
	ldm	r4, {r2, r3}
	ldr	r0, [r5]
	add	r3, r3, r2, lsl #8
	str	r3, [sp, #4]
	bl	QETH_ULP_SETUP_REAL_DEVADDR
	mov	r2, #2
	add	r1, sp, #4
	bl	memcpy
	ldr	r3, .L9+20
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #0
	bl	qeth_send_control_data
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.word	ULP_SETUP
	.word	ULP_SETUP_SIZE
	.word	QETH_MPC_TOKEN_LENGTH
	.word	qeth_ulp_setup_cb
	.word	ENOMEM
	.size	qeth_ulp_setup, .-qeth_ulp_setup
	.comm	qeth_ulp_setup_cb,4,4
	.comm	ULP_SETUP_SIZE,4,4
	.comm	ULP_SETUP,4,4
	.comm	QETH_MPC_TOKEN_LENGTH,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
