	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_ready_event             ## -- Begin function ath6kl_ready_event
	.p2align	4, 0x90
_ath6kl_ready_event:                    ## @ath6kl_ready_event
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movl	36(%rdi), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_ATH6KL_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rcx
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	_ath6kl_dbg
	movl	%r12d, 8(%rbx)
	movq	%r15, 16(%rbx)
	movl	%r14d, 32(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_strlen
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %ecx
	movl	%ecx, %r8d
	movl	%ecx, %eax
	movzwl	%cx, %edx
	shrl	$28, %ecx
	shrl	$24, %r8d
	andl	$15, %r8d
	shrl	$16, %eax
	movzbl	%al, %r9d
	movl	%edx, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
LBB0_2:
	movq	_WMI_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ATH6KL_DBG_BOOT,4,2            ## @ATH6KL_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ready event mac addr %pM sw_ver 0x%x abi_ver 0x%x cap 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%u.%u.%u.%u"

	.comm	_WMI_READY,4,2                  ## @WMI_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_ready_event             ; -- Begin function ath6kl_ready_event
	.p2align	2
_ath6kl_ready_event:                    ; @ath6kl_ready_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldr	w0, [x0, #36]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_memcpy
Lloh3:
	adrp	x8, _ATH6KL_DBG_BOOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH6KL_DBG_BOOT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19, #36]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_ath6kl_dbg
	str	w22, [x19, #8]
	str	x21, [x19, #16]
	str	w20, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_strlen
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #8]
	lsr	w3, w9, #28
	ldr	w0, [x8]
	ubfx	w4, w9, #24, #4
	ubfx	w5, w9, #16, #8
	and	w6, w9, #0xffff
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
LBB0_2:
Lloh10:
	adrp	x8, _WMI_READY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WMI_READY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wake_up
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ATH6KL_DBG_BOOT,4,2            ; @ATH6KL_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ready event mac addr %pM sw_ver 0x%x abi_ver 0x%x cap 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%u.%u.%u.%u"

	.comm	_WMI_READY,4,2                  ; @WMI_READY
.subsections_via_symbols
