	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_usb_create
_ath10k_usb_create:                     ## @ath10k_usb_create
	.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	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ath10k_usb_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	leaq	40(%r13), %rdi
	callq	_spin_lock_init
	movq	%r12, 32(%r13)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, 24(%r13)
	movq	_ATH10K_USB_PIPE_MAX@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movl	$4, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r12
	leaq	(%r12,%rbx), %rdi
	movq	_ath10k_usb_io_comp_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	(%r12,%rbx), %rdi
	addq	$-4, %rdi
	callq	_skb_queue_head_init
	incq	%r14
	movslq	(%r15), %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	movq	_ATH10K_USB_MAX_DIAG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_ATH10K_USB_MAX_DIAG_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath10k_usb_setup_pipe_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_5:
	movq	%r14, %rdi
	callq	_ath10k_usb_destroy
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_USB_PIPE_MAX,4,2        ## @ATH10K_USB_PIPE_MAX
	.comm	_ath10k_usb_io_comp_work,4,2    ## @ath10k_usb_io_comp_work
	.comm	_ATH10K_USB_MAX_DIAG_CMD,4,2    ## @ATH10K_USB_MAX_DIAG_CMD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH10K_USB_MAX_DIAG_RESP,4,2   ## @ATH10K_USB_MAX_DIAG_RESP
	.no_dead_strip	_ath10k_usb_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_usb_create
_ath10k_usb_create:                     ; @ath10k_usb_create
	.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	x20, x1
	mov	x19, x0
	bl	_ath10k_usb_priv
	mov	x21, x0
	mov	x0, x20
	bl	_interface_to_usbdev
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_usb_set_intfdata
	add	x0, x21, #40
	bl	_spin_lock_init
	stp	x20, x22, [x21, #24]
Lloh0:
	adrp	x23, _ATH10K_USB_PIPE_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATH10K_USB_PIPE_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	w25, #4
Lloh2:
	adrp	x26, _ath10k_usb_io_comp_work@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ath10k_usb_io_comp_work@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x22, x8, x25
	ldr	w1, [x26]
	mov	x0, x22
	bl	_INIT_WORK
	sub	x0, x22, #4
	bl	_skb_queue_head_init
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x25, x25, #8
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x8, _ATH10K_USB_MAX_DIAG_CMD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATH10K_USB_MAX_DIAG_CMD@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _ATH10K_USB_MAX_DIAG_RESP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH10K_USB_MAX_DIAG_RESP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_usb_setup_pipe_resources
	mov	x20, x0
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_ath10k_usb_destroy
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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_USB_PIPE_MAX,4,2        ; @ATH10K_USB_PIPE_MAX
	.comm	_ath10k_usb_io_comp_work,4,2    ; @ath10k_usb_io_comp_work
	.comm	_ATH10K_USB_MAX_DIAG_CMD,4,2    ; @ATH10K_USB_MAX_DIAG_CMD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_USB_MAX_DIAG_RESP,4,2   ; @ATH10K_USB_MAX_DIAG_RESP
	.no_dead_strip	_ath10k_usb_create
.subsections_via_symbols
