	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_usb_init_rx_bulk_urbs
_carl9170_usb_init_rx_bulk_urbs:        ## @carl9170_usb_init_rx_bulk_urbs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_AR9170_NUM_RX_URBS_POOL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	leaq	8(%r14), %r15
	leaq	12(%r14), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_carl9170_usb_alloc_rx_urb
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_usb_anchor_urb
	movq	%r12, %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	callq	_usb_free_urb
	incl	%r13d
	movq	_AR9170_NUM_RX_URBS_POOL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_2
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_carl9170_usb_submit_rx_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.7:
	movq	_CARL9170_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CARL9170_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_carl9170_set_state_when
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	leaq	8(%r14), %rdi
	callq	_usb_scuttle_anchored_urbs
	leaq	4(%r14), %rdi
	callq	_usb_scuttle_anchored_urbs
	movq	%r14, %rdi
	callq	_usb_kill_anchored_urbs
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR9170_NUM_RX_URBS_POOL,4,2    ## @AR9170_NUM_RX_URBS_POOL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CARL9170_STOPPED,4,2           ## @CARL9170_STOPPED
	.comm	_CARL9170_IDLE,4,2              ## @CARL9170_IDLE
	.no_dead_strip	_carl9170_usb_init_rx_bulk_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_usb_init_rx_bulk_urbs
_carl9170_usb_init_rx_bulk_urbs:        ; @carl9170_usb_init_rx_bulk_urbs
	.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
Lloh0:
	adrp	x23, _AR9170_NUM_RX_URBS_POOL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR9170_NUM_RX_URBS_POOL@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w25, #0
	add	x20, x19, #8
	add	x21, x19, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_carl9170_usb_alloc_rx_urb
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	mov	x1, x20
	bl	_usb_anchor_urb
	mov	x0, x21
	bl	_atomic_inc
	mov	x0, x22
	bl	_usb_free_urb
	add	w25, w25, #1
	ldr	w8, [x23]
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_4:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_carl9170_usb_submit_rx_urb
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
Lloh4:
	adrp	x8, _CARL9170_STOPPED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CARL9170_STOPPED@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _CARL9170_IDLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CARL9170_IDLE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_carl9170_set_state_when
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	add	x0, x19, #8
	bl	_usb_scuttle_anchored_urbs
	add	x0, x19, #4
	bl	_usb_scuttle_anchored_urbs
	mov	x0, x19
	bl	_usb_kill_anchored_urbs
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR9170_NUM_RX_URBS_POOL,4,2    ; @AR9170_NUM_RX_URBS_POOL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CARL9170_STOPPED,4,2           ; @CARL9170_STOPPED
	.comm	_CARL9170_IDLE,4,2              ; @CARL9170_IDLE
	.no_dead_strip	_carl9170_usb_init_rx_bulk_urbs
.subsections_via_symbols
