	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_probe_device         ## -- Begin function ath9k_htc_probe_device
	.p2align	4, 0x90
_ath9k_htc_probe_device:                ## @ath9k_htc_probe_device
	.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
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ath9k_htc_ops@GOTPCREL(%rip), %rsi
	movl	$32, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rax), %rbx
	movq	%rax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%rbx, (%r14)
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SET_IEEE80211_DEV
	movq	%rbx, %rdi
	callq	_ath9k_htc_wait_for_target
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_ath9k_init_wmi
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_ath9k_init_htc_services
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_ath9k_init_device
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_ath9k_deinit_wmi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movq	%r13, %rdi
	callq	_ieee80211_free_hw
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ath9k_htc_ops,4,2              ## @ath9k_htc_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_probe_device         ; -- Begin function ath9k_htc_probe_device
	.p2align	2
_ath9k_htc_probe_device:                ; @ath9k_htc_probe_device
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x1, _ath9k_htc_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ath9k_htc_ops@GOTPAGEOFF]
	mov	w0, #32
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	stp	x25, x0, [x23, #16]
	str	x24, [x23, #8]
	str	x23, [x25]
	mov	x1, x24
	bl	_SET_IEEE80211_DEV
	mov	x0, x23
	bl	_ath9k_htc_wait_for_target
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x23
	bl	_ath9k_init_wmi
	str	w0, [x23]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_ath9k_init_htc_services
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_ath9k_init_device
	mov	x24, x0
	cbz	w0, LBB0_9
LBB0_5:
	mov	x0, x23
	bl	_ath9k_deinit_wmi
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_8:
	mov	x0, x19
	bl	_ieee80211_free_hw
LBB0_9:
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ath9k_htc_ops,4,2              ; @ath9k_htc_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
