	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i596_cleanup_cmd
_i596_cleanup_cmd:                      ## @i596_cleanup_cmd
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_I596_NULL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_pa_to_va
	movq	%rax, (%r12)
	decl	24(%r12)
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_barrier
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$100, %edx
	callq	_i596_timeout
	movq	(%r12), %rdi
	jmp	LBB0_6
LBB0_4:
	xorl	%edi, %edi
LBB0_6:
	callq	_va_to_pa
	movl	%eax, 8(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I596_NULL,8,3                  ## @I596_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i596_cleanup_cmd"

	.no_dead_strip	_i596_cleanup_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i596_cleanup_cmd
_i596_cleanup_cmd:                      ; @i596_cleanup_cmd
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, _I596_NULL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I596_NULL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_pa_to_va
	str	x0, [x19]
	ldr	w8, [x19, #24]
	sub	w8, w8, #1
	str	w8, [x19, #24]
	ldr	x8, [x22]
	str	x8, [x21, #8]
	bl	_barrier
	ldr	x21, [x19]
	cbnz	x21, LBB0_2
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #100
	bl	_i596_timeout
	ldr	x0, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	bl	_va_to_pa
	str	w0, [x19, #8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_I596_NULL,8,3                  ; @I596_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i596_cleanup_cmd"

	.no_dead_strip	_i596_cleanup_cmd
.subsections_via_symbols
