	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet_open
_pcnet_open:                            ## @pcnet_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_PRIV
	movq	%rax, %r14
	movq	16(%rax), %r15
	movl	(%rbx), %r12d
	movl	4(%rbx), %edx
	leaq	4(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_pcmcia_dev_present
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_set_misc_reg
	movq	_EN0_ISR@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	$255, %edi
	movq	%r12, %rsi
	callq	_outb_p
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edi
	movq	_ei_irq_wrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	incl	(%r15)
	movl	8(%r14), %eax
	movl	%eax, 12(%r14)
	movl	$0, (%r14)
	addq	$4, %r14
	movq	_ei_watchdog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mod_timer
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ei_open                        ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcnet_open('%s')\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EN0_ISR,8,3                    ## @EN0_ISR
	.comm	_ei_irq_wrapper,4,2             ## @ei_irq_wrapper
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_ei_watchdog,4,2                ## @ei_watchdog
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_pcnet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet_open
_pcnet_open:                            ; @pcnet_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_PRIV
	mov	x20, x0
	ldr	x21, [x0, #16]
	add	x0, x21, #4
	ldp	w22, w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x21
	bl	_pcmcia_dev_present
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_set_misc_reg
Lloh2:
	adrp	x8, _EN0_ISR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EN0_ISR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	w0, #255
	bl	_outb_p
Lloh5:
	adrp	x8, _ei_irq_wrapper@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ei_irq_wrapper@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldp	w3, w0, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w8, [x20, #8]
	str	w8, [x20, #12]
	str	wzr, [x20], #4
Lloh11:
	adrp	x8, _ei_watchdog@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ei_watchdog@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_mod_timer
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ei_open
LBB0_3:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcnet_open('%s')\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EN0_ISR,8,3                    ; @EN0_ISR
	.comm	_ei_irq_wrapper,4,2             ; @ei_irq_wrapper
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_ei_watchdog,4,2                ; @ei_watchdog
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_pcnet_open
.subsections_via_symbols
