	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_usb_create
_ath6kl_usb_create:                     ## @ath6kl_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
	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
	callq	_interface_to_usbdev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	movq	%r13, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	%r15, 32(%r13)
	movq	%r14, 24(%r13)
	movq	_ATH6KL_USB_PIPE_MAX@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.2:
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	leaq	(%r14,%rbx), %rdi
	movq	_ath6kl_usb_io_comp_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	(%r14,%rbx), %rdi
	addq	$-4, %rdi
	callq	_skb_queue_head_init
	incq	%r15
	movslq	(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	movq	_ATH6KL_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_5
## %bb.6:
	movq	_ATH6KL_USB_MAX_DIAG_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%r13, %rdi
	callq	_ath6kl_usb_setup_pipe_resources
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	callq	_ath6kl_usb_destroy
	xorl	%r13d, %r13d
LBB0_10:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ATH6KL_USB_PIPE_MAX,4,2        ## @ATH6KL_USB_PIPE_MAX
	.comm	_ath6kl_usb_io_comp_work,4,2    ## @ath6kl_usb_io_comp_work
	.comm	_ATH6KL_USB_MAX_DIAG_CMD,4,2    ## @ATH6KL_USB_MAX_DIAG_CMD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH6KL_USB_MAX_DIAG_RESP,4,2   ## @ATH6KL_USB_MAX_DIAG_RESP
	.no_dead_strip	_ath6kl_usb_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_usb_create
_ath6kl_usb_create:                     ; @ath6kl_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, x0
	bl	_interface_to_usbdev
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	add	x0, x19, #40
	bl	_spin_lock_init
	stp	x20, x21, [x19, #24]
Lloh2:
	adrp	x21, _ATH6KL_USB_PIPE_MAX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ATH6KL_USB_PIPE_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	w24, #4
Lloh4:
	adrp	x25, _ath6kl_usb_io_comp_work@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ath6kl_usb_io_comp_work@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x20, x8, x24
	ldr	w1, [x25]
	mov	x0, x20
	bl	_INIT_WORK
	sub	x0, x20, #4
	bl	_skb_queue_head_init
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x24, x24, #8
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
Lloh6:
	adrp	x8, _ATH6KL_USB_MAX_DIAG_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH6KL_USB_MAX_DIAG_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _ATH6KL_USB_MAX_DIAG_RESP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH6KL_USB_MAX_DIAG_RESP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ath6kl_usb_setup_pipe_resources
	cbnz	w0, LBB0_8
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	cbz	w0, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ath6kl_usb_destroy
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ATH6KL_USB_PIPE_MAX,4,2        ; @ATH6KL_USB_PIPE_MAX
	.comm	_ath6kl_usb_io_comp_work,4,2    ; @ath6kl_usb_io_comp_work
	.comm	_ATH6KL_USB_MAX_DIAG_CMD,4,2    ; @ATH6KL_USB_MAX_DIAG_CMD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH6KL_USB_MAX_DIAG_RESP,4,2   ; @ATH6KL_USB_MAX_DIAG_RESP
	.no_dead_strip	_ath6kl_usb_create
.subsections_via_symbols
