	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp100_open
_hp100_open:                            ## @hp100_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_hp100_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	_HP100_BUS_EISA@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	movq	_HP100_BUS_PCI@GOTPCREL(%rip), %rcx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	$0, %edx
	cmovel	%edi, %edx
	cmpq	(%rcx), %rax
	cmovel	%edi, %edx
	movl	4(%rbx), %edi
	movl	8(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_trans_update
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%rbx, %rdi
	callq	_hp100_sense_lan
	movl	%eax, 20(%r15)
	movq	_HP100_MAC1MODE3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_HP100_MAC2MODE3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_hp100_stop_interface
	movq	%rbx, %rdi
	callq	_hp100_hwinit
	movq	%rbx, %rdi
	callq	_hp100_start_interface
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hp100_interrupt,4,2            ## @hp100_interrupt
	.comm	_HP100_BUS_PCI,8,3              ## @HP100_BUS_PCI
	.comm	_HP100_BUS_EISA,8,3             ## @HP100_BUS_EISA
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hp100: %s: unable to get IRQ %d\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_HP100_MAC1MODE3,4,2            ## @HP100_MAC1MODE3
	.comm	_HP100_MAC2MODE3,4,2            ## @HP100_MAC2MODE3
	.comm	_TRACE,4,2                      ## @TRACE
	.no_dead_strip	_hp100_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp100_open
_hp100_open:                            ; @hp100_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _hp100_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hp100_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _HP100_BUS_PCI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HP100_BUS_PCI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _HP100_BUS_EISA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HP100_BUS_EISA@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csel	w2, w8, wzr, eq
	ldp	w0, w3, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w8, w1, [x19, #4]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_netif_trans_update
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x19
	bl	_hp100_sense_lan
	str	w0, [x20, #20]
Lloh17:
	adrp	x8, _HP100_MAC1MODE3@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HP100_MAC1MODE3@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _HP100_MAC2MODE3@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HP100_MAC2MODE3@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x19
	bl	_hp100_stop_interface
	mov	x0, x19
	bl	_hp100_hwinit
	mov	x0, x19
	bl	_hp100_start_interface
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_hp100_interrupt,4,2            ; @hp100_interrupt
	.comm	_HP100_BUS_PCI,8,3              ; @HP100_BUS_PCI
	.comm	_HP100_BUS_EISA,8,3             ; @HP100_BUS_EISA
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hp100: %s: unable to get IRQ %d\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_HP100_MAC1MODE3,4,2            ; @HP100_MAC1MODE3
	.comm	_HP100_MAC2MODE3,4,2            ; @HP100_MAC2MODE3
	.comm	_TRACE,4,2                      ; @TRACE
	.no_dead_strip	_hp100_open
.subsections_via_symbols
