	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdrv_open
_netdrv_open:                           ## @netdrv_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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_netdrv_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %edi
	movl	4(%r15), %ecx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_10
LBB0_2:
	movl	40(%r14), %edi
	movq	_TX_BUF_TOT_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	72(%r14), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 80(%r14)
	movl	40(%r14), %edi
	movq	_RX_BUF_TOT_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	56(%r14), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 64(%r14)
	cmpq	$0, 80(%r14)
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	48(%r14), %rax
	movq	%rax, 32(%r14)
	movq	_TX_FIFO_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$11, %eax
	andl	$4128768, %eax                  ## imm = 0x3F0000
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_netdrv_init_ring
	movq	%r15, %rdi
	callq	_netdrv_hw_start
	movl	4(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	40(%r14), %edi
	movl	$1, %esi
	callq	_pci_resource_start
	movl	%eax, %r13d
	movl	(%r15), %r12d
	movq	_MediaStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NETDRV_R8
	cmpq	$0, 32(%r14)
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.4(%rip), %r9
	cmoveq	%rcx, %r9
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_init_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 24(%r14)
	movq	%r15, 8(%r14)
	movq	_netdrv_timer@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	%r12, %rdi
	callq	_add_timer
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_10
LBB0_4:
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movq	80(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	movl	40(%r14), %edi
	movl	72(%r14), %ecx
	callq	_pci_free_consistent
LBB0_6:
	movq	64(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movl	(%r12), %esi
	movl	40(%r14), %edi
	movl	56(%r14), %ecx
	callq	_pci_free_consistent
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_netdrv_interrupt,4,2           ## @netdrv_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"EXIT, returning %d\n"

	.comm	_TX_BUF_TOT_LEN,4,2             ## @TX_BUF_TOT_LEN
	.comm	_RX_BUF_TOT_LEN,4,2             ## @RX_BUF_TOT_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EXIT, returning -ENOMEM\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX_FIFO_THRESH,4,2             ## @TX_FIFO_THRESH
L_.str.3:                               ## @.str.3
	.asciz	"%s: netdrv_open() ioaddr %#lx IRQ %d GP Pins %2.2x %s-duplex.\n"

	.comm	_MediaStatus,4,2                ## @MediaStatus
L_.str.4:                               ## @.str.4
	.asciz	"full"

L_.str.5:                               ## @.str.5
	.asciz	"half"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_netdrv_timer,4,2               ## @netdrv_timer
L_.str.6:                               ## @.str.6
	.asciz	"EXIT, returning 0\n"

	.no_dead_strip	_netdrv_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdrv_open
_netdrv_open:                           ; @netdrv_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh2:
	adrp	x8, _netdrv_interrupt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _netdrv_interrupt@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldp	w0, w3, [x20]
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x21, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
	b	LBB0_10
LBB0_2:
	ldr	w0, [x19, #40]
Lloh10:
	adrp	x22, _TX_BUF_TOT_LEN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _TX_BUF_TOT_LEN@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, x19, #72
	bl	_pci_alloc_consistent
	str	x0, [x19, #80]
	ldr	w0, [x19, #40]
Lloh12:
	adrp	x21, _RX_BUF_TOT_LEN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _RX_BUF_TOT_LEN@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, x19, #56
	bl	_pci_alloc_consistent
	str	x0, [x19, #64]
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_5
; %bb.3:
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #48]
	str	x8, [x19, #32]
Lloh14:
	adrp	x8, _TX_FIFO_THRESH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TX_FIFO_THRESH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w8, w8, #11
	and	w8, w8, #0x3f0000
	str	w8, [x19]
	mov	x0, x20
	bl	_netdrv_init_ring
	mov	x0, x20
	bl	_netdrv_hw_start
	ldr	w0, [x19, #40]
	ldr	w22, [x20, #4]
	mov	w1, #1
	bl	_pci_resource_start
	mov	x21, x0
Lloh17:
	adrp	x8, _MediaStatus@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MediaStatus@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w23, [x20]
	bl	_NETDRV_R8
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #32]
Lloh20:
	adrp	x9, l_.str.4@PAGE
Lloh21:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh22:
	adrp	x10, l_.str.5@PAGE
Lloh23:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	stp	x0, x8, [sp, #24]
	stp	x21, x23, [sp, #8]
	str	x22, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINTK
	add	x21, x19, #8
	mov	x0, x21
	bl	_init_timer
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _HZ@GOTPAGE
Lloh30:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh31:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #1
	add	x8, x8, x9
	str	x8, [x19, #24]
Lloh32:
	adrp	x8, _netdrv_timer@GOTPAGE
Lloh33:
	ldr	x8, [x8, _netdrv_timer@GOTPAGEOFF]
	stp	x20, x8, [x19, #8]
	mov	x0, x21
	bl	_add_timer
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DPRINTK
	mov	w21, #0
	b	LBB0_10
LBB0_5:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	ldr	x2, [x19, #80]
	cbz	x2, LBB0_7
; %bb.6:
	ldr	w0, [x19, #40]
	ldr	w1, [x22]
	ldr	w3, [x19, #72]
	bl	_pci_free_consistent
LBB0_7:
	ldr	x2, [x19, #64]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	w0, [x19, #40]
	ldr	w1, [x21]
	ldr	w3, [x19, #56]
	bl	_pci_free_consistent
LBB0_9:
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTK
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_netdrv_interrupt,4,2           ; @netdrv_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"EXIT, returning %d\n"

	.comm	_TX_BUF_TOT_LEN,4,2             ; @TX_BUF_TOT_LEN
	.comm	_RX_BUF_TOT_LEN,4,2             ; @RX_BUF_TOT_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EXIT, returning -ENOMEM\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX_FIFO_THRESH,4,2             ; @TX_FIFO_THRESH
l_.str.3:                               ; @.str.3
	.asciz	"%s: netdrv_open() ioaddr %#lx IRQ %d GP Pins %2.2x %s-duplex.\n"

	.comm	_MediaStatus,4,2                ; @MediaStatus
l_.str.4:                               ; @.str.4
	.asciz	"full"

l_.str.5:                               ; @.str.5
	.asciz	"half"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_netdrv_timer,4,2               ; @netdrv_timer
l_.str.6:                               ; @.str.6
	.asciz	"EXIT, returning 0\n"

	.no_dead_strip	_netdrv_open
.subsections_via_symbols
