	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_attach                  ## -- Begin function qlcnic_attach
	.p2align	4, 0x90
_qlcnic_attach:                         ## @qlcnic_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_QLCNIC_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	cmpq	(%r13), %rax
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	8(%rdi), %r12
	movq	%r15, %rsi
	callq	_qlcnic_napi_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	%r14, %rdi
	callq	_qlcnic_alloc_sw_resources
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_qlcnic_alloc_hw_resources
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_qlcnic_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_qlcnic_free_hw_resources
LBB0_7:
	movq	%r14, %rdi
	callq	_qlcnic_free_sw_resources
LBB0_4:
	movq	%r14, %rdi
	callq	_qlcnic_napi_del
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	callq	_qlcnic_create_sysfs_entries
	movq	%r14, %rdi
	callq	_qlcnic_encap_rx_offload
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_udp_tunnel_get_rx_info
LBB0_12:
	movq	(%r13), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ## @QLCNIC_ADAPTER_UP_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in setting sw resources\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error in setting hw resources\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to setup interrupt\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_attach                  ; -- Begin function qlcnic_attach
	.p2align	2
_qlcnic_attach:                         ; @qlcnic_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	ldp	x22, x21, [x0, #8]
	mov	x1, x21
	bl	_qlcnic_napi_add
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_qlcnic_alloc_sw_resources
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_alloc_hw_resources
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_qlcnic_request_irq
	cbz	w0, LBB0_12
; %bb.8:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x19
	bl	_qlcnic_free_hw_resources
LBB0_9:
	mov	x0, x19
	bl	_qlcnic_free_sw_resources
LBB0_10:
	mov	x0, x19
	bl	_qlcnic_napi_del
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_qlcnic_create_sysfs_entries
	mov	x0, x19
	bl	_qlcnic_encap_rx_offload
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_udp_tunnel_get_rx_info
LBB0_14:
	mov	w20, #0
	ldr	x8, [x23]
	str	x8, [x19]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ; @QLCNIC_ADAPTER_UP_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in setting sw resources\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error in setting hw resources\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to setup interrupt\n"

.subsections_via_symbols
