	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_hif_setup               ## -- Begin function ath6kl_hif_setup
	.p2align	4, 0x90
_ath6kl_hif_setup:                      ## @ath6kl_hif_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	leal	-1(%rdx), %esi
	testl	%esi, %edx
	jne	LBB0_1
## %bb.2:
	movl	%esi, 4(%rcx)
	movq	_ATH6KL_DBG_HIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath6kl_dbg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ath6kl_hif_disable_intrs       ## TAILCALL
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH6KL_DBG_HIF,4,2             ## @ATH6KL_DBG_HIF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hif block size %d mbox addr 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_hif_setup               ; -- Begin function ath6kl_hif_setup
	.p2align	2
_ath6kl_hif_setup:                      ; @ath6kl_hif_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #16
	bl	_spin_lock_init
	ldp	x8, x9, [x19]
	ldr	w2, [x8]
	str	w2, [x9]
	sub	w10, w2, #1
	tst	w2, w10
	b.ne	LBB0_2
; %bb.1:
	str	w10, [x9, #4]
Lloh0:
	adrp	x9, _ATH6KL_DBG_HIF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH6KL_DBG_HIF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldr	w3, [x8, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath6kl_hif_disable_intrs
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH6KL_DBG_HIF,4,2             ; @ATH6KL_DBG_HIF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hif block size %d mbox addr 0x%x\n"

.subsections_via_symbols
