	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_wmi_connect              ## -- Begin function ath9k_wmi_connect
	.p2align	4, 0x90
_ath9k_wmi_connect:                     ## @ath9k_wmi_connect
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdi, 8(%rsi)
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, -40(%rbp)
	movq	_ath9k_wmi_ctrl_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_ath9k_wmi_ctrl_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_WMI_CONTROL_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_htc_connect_service
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %ecx
	movl	%ecx, (%r14)
LBB0_2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath9k_wmi_ctrl_tx,4,2          ## @ath9k_wmi_ctrl_tx
	.comm	_ath9k_wmi_ctrl_rx,4,2          ## @ath9k_wmi_ctrl_rx
	.comm	_WMI_CONTROL_SVC,4,2            ## @WMI_CONTROL_SVC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_wmi_connect              ; -- Begin function ath9k_wmi_connect
	.p2align	2
_ath9k_wmi_connect:                     ; @ath9k_wmi_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	x0, [x1, #8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x20, [sp, #24]
Lloh0:
	adrp	x8, _ath9k_wmi_ctrl_tx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath9k_wmi_ctrl_tx@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _ath9k_wmi_ctrl_rx@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ath9k_wmi_ctrl_rx@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WMI_CONTROL_SVC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WMI_CONTROL_SVC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w8, [sp, #16]
	str	w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_htc_connect_service
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_2:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ath9k_wmi_ctrl_tx,4,2          ; @ath9k_wmi_ctrl_tx
	.comm	_ath9k_wmi_ctrl_rx,4,2          ; @ath9k_wmi_ctrl_rx
	.comm	_WMI_CONTROL_SVC,4,2            ; @WMI_CONTROL_SVC
.subsections_via_symbols
