	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adapter_reset
_adapter_reset:                         ## @adapter_reset
	.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
	subq	$24, %rsp
	.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, %rbx
	movb	(%rax), %r12b
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_outb_control
	movl	4(%r15), %edi
	callq	_inb_status
	movq	_ACRF@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.1:
	movb	%r12b, -41(%rbp)                ## 1-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_HZ@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edi
	callq	_inb_status
	testl	%eax, (%r13)
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	4(%r15), %edi
	callq	_inb_command
	movl	(%r12), %edi
	movslq	(%r14), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$36, %rax
	addl	%ecx, %eax
	addl	%edi, %eax
	movslq	%eax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rsi
	callq	_time_before_eq
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	4(%r15), %edi
	callq	_inb_status
	testl	%eax, (%r13)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r12), %edi
	jmp	LBB0_3
LBB0_7:
	movq	_HSF_PCB_NAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_set_hsf
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movb	-41(%rbp), %r12b                ## 1-byte Reload
LBB0_8:
	movq	_ATTN@GOTPCREL(%rip), %r14
	movb	(%r14), %al
	orb	(%rbx), %al
	movq	_DIR@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movzbl	%al, %edi
	movq	%r15, %rsi
	callq	_outb_control
	movl	$10, %edi
	callq	_mdelay
	movb	(%r14), %al
	notb	%al
	andb	(%rbx), %al
	movzbl	%al, %edi
	movq	%r15, %rsi
	callq	_outb_control
	movl	$10, %edi
	callq	_mdelay
	movq	_FLSH@GOTPCREL(%rip), %r14
	movb	(%r14), %al
	orb	(%rbx), %al
	movzbl	%al, %edi
	movq	%r15, %rsi
	callq	_outb_control
	movl	$10, %edi
	callq	_mdelay
	movb	(%r14), %al
	notb	%al
	andb	(%rbx), %al
	movzbl	%al, %edi
	movq	%r15, %rsi
	callq	_outb_control
	movl	$10, %edi
	callq	_mdelay
	movzbl	%r12b, %edi
	movq	%r15, %rsi
	callq	_outb_control
	addq	$4, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_start_receive
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACRF,4,2                       ## @ACRF
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_HSF_PCB_NAK,4,2                ## @HSF_PCB_NAK
	.comm	_ATTN,1,0                       ## @ATTN
	.comm	_DIR,1,0                        ## @DIR
	.comm	_FLSH,1,0                       ## @FLSH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: start receive command failed\n"

	.no_dead_strip	_adapter_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adapter_reset
_adapter_reset:                         ; @adapter_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldrb	w21, [x0]
	mov	w0, #0
	mov	x1, x19
	bl	_outb_control
	ldr	w0, [x19, #4]
	bl	_inb_status
Lloh0:
	adrp	x23, _ACRF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ACRF@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
Lloh2:
	adrp	x24, _jiffies@GOTPAGE
Lloh3:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
Lloh4:
	adrp	x25, _HZ@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
	mov	w26, #34079
	movk	w26, #20971, lsl #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #4]
	bl	_inb_status
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w0, [x19, #4]
	bl	_inb_command
	ldr	w0, [x24]
	ldrsw	x8, [x25]
	mul	x8, x8, x26
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w9
	add	w8, w8, w0
	sxtw	x22, w8
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x22
	bl	_time_before_eq
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x19, #4]
	bl	_inb_status
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x24]
	b	LBB0_4
LBB0_7:
Lloh6:
	adrp	x8, _HSF_PCB_NAK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HSF_PCB_NAK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_hsf
LBB0_8:
	ldrb	w8, [x20]
Lloh9:
	adrp	x22, _ATTN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ATTN@GOTPAGEOFF]
	ldrb	w9, [x22]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _DIR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DIR@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w0, w8, w9
	mov	x1, x19
	bl	_outb_control
	mov	w0, #10
	bl	_mdelay
	ldrb	w8, [x20]
	ldrb	w9, [x22]
	eor	w9, w9, #0xff
	and	w0, w8, w9
	mov	x1, x19
	bl	_outb_control
	mov	w0, #10
	bl	_mdelay
	ldrb	w8, [x20]
Lloh13:
	adrp	x22, _FLSH@GOTPAGE
Lloh14:
	ldr	x22, [x22, _FLSH@GOTPAGEOFF]
	ldrb	w9, [x22]
	orr	w0, w9, w8
	mov	x1, x19
	bl	_outb_control
	mov	w0, #10
	bl	_mdelay
	ldrb	w8, [x20], #4
	ldrb	w9, [x22]
	eor	w9, w9, #0xff
	and	w0, w8, w9
	mov	x1, x19
	bl	_outb_control
	mov	w0, #10
	bl	_mdelay
	mov	x0, x21
	mov	x1, x19
	bl	_outb_control
	mov	x0, x19
	mov	x1, x20
	bl	_start_receive
	cbz	w0, LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w1, [x19]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ACRF,4,2                       ; @ACRF
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_HSF_PCB_NAK,4,2                ; @HSF_PCB_NAK
	.comm	_ATTN,1,0                       ; @ATTN
	.comm	_DIR,1,0                        ; @DIR
	.comm	_FLSH,1,0                       ; @FLSH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: start receive command failed\n"

	.no_dead_strip	_adapter_reset
.subsections_via_symbols
