	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_reset_queues             ## -- Begin function ionic_reset_queues
	.p2align	4, 0x90
_ionic_reset_queues:                    ## @ionic_reset_queues
	.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, %r14
	movl	4(%rdi), %edi
	callq	_netif_trans_update
	movq	_IONIC_LIF_QUEUE_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ionic_wait_for_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	callq	_netif_running
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	4(%r14), %edi
	callq	_ionic_stop
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	4(%r14), %edi
	callq	_ionic_open
	xorl	%ebx, %ebx
LBB0_5:
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_clear_bit
	jmp	LBB0_6
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_LIF_QUEUE_RESET,4,2      ## @IONIC_LIF_QUEUE_RESET
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_reset_queues             ; -- Begin function ionic_reset_queues
	.p2align	2
_ionic_reset_queues:                    ; @ionic_reset_queues
	.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
	ldr	w0, [x0, #4]
	bl	_netif_trans_update
Lloh0:
	adrp	x21, _IONIC_LIF_QUEUE_RESET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IONIC_LIF_QUEUE_RESET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ionic_wait_for_bit
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_ionic_stop
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_ionic_open
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_clear_bit
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_LIF_QUEUE_RESET,4,2      ; @IONIC_LIF_QUEUE_RESET
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
