	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_host_available
_ar5523_host_available:                 ## @ar5523_host_available
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ATH_SW_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -16(%rbp)
	movq	_ATH_SW_VER_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -24(%rbp)
	movq	_ATH_SW_VER_PATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -32(%rbp)
	movq	_ATH_SW_VER_BUILD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -40(%rbp)
	movq	_WDCMSG_HOST_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$32, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ar5523_cmd_read
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_SW_VER_MAJOR,4,2           ## @ATH_SW_VER_MAJOR
	.comm	_ATH_SW_VER_MINOR,4,2           ## @ATH_SW_VER_MINOR
	.comm	_ATH_SW_VER_PATCH,4,2           ## @ATH_SW_VER_PATCH
	.comm	_ATH_SW_VER_BUILD,4,2           ## @ATH_SW_VER_BUILD
	.comm	_WDCMSG_HOST_AVAILABLE,4,2      ## @WDCMSG_HOST_AVAILABLE
	.no_dead_strip	_ar5523_host_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_host_available
_ar5523_host_available:                 ; @ar5523_host_available
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _ATH_SW_VER_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_SW_VER_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #24]
Lloh3:
	adrp	x8, _ATH_SW_VER_MINOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_SW_VER_MINOR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #16]
Lloh6:
	adrp	x8, _ATH_SW_VER_PATCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH_SW_VER_PATCH@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #8]
Lloh9:
	adrp	x8, _ATH_SW_VER_BUILD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH_SW_VER_BUILD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp]
Lloh12:
	adrp	x8, _WDCMSG_HOST_AVAILABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WDCMSG_HOST_AVAILABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #32
	mov	x4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ar5523_cmd_read
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_SW_VER_MAJOR,4,2           ; @ATH_SW_VER_MAJOR
	.comm	_ATH_SW_VER_MINOR,4,2           ; @ATH_SW_VER_MINOR
	.comm	_ATH_SW_VER_PATCH,4,2           ; @ATH_SW_VER_PATCH
	.comm	_ATH_SW_VER_BUILD,4,2           ; @ATH_SW_VER_BUILD
	.comm	_WDCMSG_HOST_AVAILABLE,4,2      ; @WDCMSG_HOST_AVAILABLE
	.no_dead_strip	_ar5523_host_available
.subsections_via_symbols
