	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_set_host_app_area
_ath6kl_set_host_app_area:              ## @ath6kl_set_host_app_area
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_hi_app_host_interest@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HI_ITEM
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ath6kl_get_hi_item_addr
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_TARG_VTOP
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ath6kl_diag_read32
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movl	-28(%rbp), %esi
	callq	_TARG_VTOP
	movl	%eax, %r14d
	movq	_WMI_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %ecx
	callq	_ath6kl_diag_write
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_app_host_interest,4,2       ## @hi_app_host_interest
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WMI_PROTOCOL_VERSION,4,2       ## @WMI_PROTOCOL_VERSION
	.no_dead_strip	_ath6kl_set_host_app_area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_set_host_app_area
_ath6kl_set_host_app_area:              ; @ath6kl_set_host_app_area
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _hi_app_host_interest@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hi_app_host_interest@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_HI_ITEM
	mov	x1, x0
	mov	x0, x19
	bl	_ath6kl_get_hi_item_addr
	mov	x1, x0
	ldr	w0, [x19]
	bl	_TARG_VTOP
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x19
	bl	_ath6kl_diag_read32
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [sp, #12]
	bl	_TARG_VTOP
	mov	x20, x0
Lloh3:
	adrp	x8, _WMI_PROTOCOL_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_PROTOCOL_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	bl	_ath6kl_diag_write
	cbz	x0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_app_host_interest,4,2       ; @hi_app_host_interest
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WMI_PROTOCOL_VERSION,4,2       ; @WMI_PROTOCOL_VERSION
	.no_dead_strip	_ath6kl_set_host_app_area
.subsections_via_symbols
