	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r6040_open
_r6040_open:                            ## @r6040_open
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_r6040_interrupt@GOTPCREL(%rip), %rsi
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_r6040_mac_address
	movl	32(%r14), %edi
	movq	_RX_DESC_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	16(%r14), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	32(%r14), %edi
	movq	_TX_DESC_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	36(%r14), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_r6040_up
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	40(%r14), %rdx
	movl	32(%r14), %edi
	movl	36(%r14), %ecx
	callq	_pci_free_consistent
	movl	32(%r14), %edi
	movl	(%r12), %esi
	movq	24(%r14), %rdx
	movl	16(%r14), %ecx
	callq	_pci_free_consistent
	jmp	LBB0_9
LBB0_4:
	movl	32(%r14), %edi
	movl	(%r12), %esi
	movq	24(%r14), %rdx
	movl	16(%r14), %ecx
	callq	_pci_free_consistent
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	12(%r14), %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%r14, %r12
	addq	$8, %r12
	movq	_r6040_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_setup_timer
	movq	(%r14), %rax
	movq	_ICPLUS_PHY_ID@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_mod_timer
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_r6040_interrupt,4,2            ## @r6040_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_RX_DESC_SIZE,4,2               ## @RX_DESC_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX_DESC_SIZE,4,2               ## @TX_DESC_SIZE
	.comm	_r6040_timer,4,2                ## @r6040_timer
	.comm	_ICPLUS_PHY_ID,8,3              ## @ICPLUS_PHY_ID
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_r6040_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r6040_open
_r6040_open:                            ; @r6040_open
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldp	w3, w0, [x20]
Lloh3:
	adrp	x1, _r6040_interrupt@GOTPAGE
Lloh4:
	ldr	x1, [x1, _r6040_interrupt@GOTPAGEOFF]
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_r6040_mac_address
	ldr	w0, [x19, #32]
Lloh5:
	adrp	x22, _RX_DESC_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RX_DESC_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, x19, #16
	bl	_pci_alloc_consistent
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #32]
Lloh7:
	adrp	x23, _TX_DESC_SIZE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TX_DESC_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, x19, #36
	bl	_pci_alloc_consistent
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_r6040_up
	cbz	w0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	w1, [x23]
	ldr	x2, [x19, #40]
	ldp	w0, w3, [x19, #32]
	bl	_pci_free_consistent
	ldr	w0, [x19, #32]
	ldr	w1, [x22]
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #16]
	bl	_pci_free_consistent
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #32]
	ldr	w1, [x22]
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #16]
	bl	_pci_free_consistent
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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_8:
	add	x0, x19, #12
	bl	_napi_enable
	mov	x0, x20
	bl	_netif_start_queue
	add	x21, x19, #8
Lloh12:
	adrp	x8, _r6040_timer@GOTPAGE
Lloh13:
	ldr	x8, [x8, _r6040_timer@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_setup_timer
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _ICPLUS_PHY_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ICPLUS_PHY_ID@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _HZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_mod_timer
LBB0_10:
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_r6040_interrupt,4,2            ; @r6040_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_RX_DESC_SIZE,4,2               ; @RX_DESC_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX_DESC_SIZE,4,2               ; @TX_DESC_SIZE
	.comm	_r6040_timer,4,2                ; @r6040_timer
	.comm	_ICPLUS_PHY_ID,8,3              ; @ICPLUS_PHY_ID
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_r6040_open
.subsections_via_symbols
