	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i596_reset
_i596_reset:                            ## @i596_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$100, %edx
	callq	_i596_timeout
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_CUC_ABORT@GOTPCREL(%rip), %rax
	movq	_RX_ABORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	xorl	%eax, %eax
	callq	_CA
	xorl	%eax, %eax
	callq	_barrier
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$400, %edx                      ## imm = 0x190
	callq	_i596_timeout
LBB0_4:
	movq	%rbx, %rdi
	callq	_i596_cleanup_cmd
	movq	%rbx, %rdi
	callq	_i596_rx
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_init_i596                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i596_reset"

	.comm	_CUC_ABORT,4,2                  ## @CUC_ABORT
	.comm	_RX_ABORT,4,2                   ## @RX_ABORT
L_.str.1:                               ## @.str.1
	.asciz	"i596_reset(2)"

	.no_dead_strip	_i596_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i596_reset
_i596_reset:                            ; @i596_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #100
	bl	_i596_timeout
LBB0_2:
	mov	x0, x19
	bl	_netif_stop_queue
Lloh2:
	adrp	x8, _CUC_ABORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CUC_ABORT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _RX_ABORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RX_ABORT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	bl	_CA
	bl	_barrier
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #400
	bl	_i596_timeout
LBB0_4:
	mov	x0, x19
	bl	_i596_cleanup_cmd
	mov	x0, x19
	bl	_i596_rx
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_init_i596
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i596_reset"

	.comm	_CUC_ABORT,4,2                  ; @CUC_ABORT
	.comm	_RX_ABORT,4,2                   ; @RX_ABORT
l_.str.1:                               ; @.str.1
	.asciz	"i596_reset(2)"

	.no_dead_strip	_i596_reset
.subsections_via_symbols
