	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_set_htc_params
_ath6kl_set_htc_params:                 ## @ath6kl_set_htc_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%edx, %ebx
	shll	$16, %ebx
	xorl	%r15d, %r15d
	testq	%rdx, %rdx
	cmovel	%r15d, %ebx
	orl	(%rdi), %ebx
	movq	_hi_mbox_io_block_sz@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_ath6kl_bmi_write_hi32
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	callq	_HI_ITEM
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ath6kl_get_hi_item_addr
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_ath6kl_dbg
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	movq	_hi_mbox_isr_yield_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_ath6kl_bmi_write_hi32
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	movl	%eax, %r15d
	callq	_ath6kl_err
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_mbox_io_block_sz,4,2        ## @hi_mbox_io_block_sz
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi_write_memory for IO block size failed\n"

	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
L_.str.1:                               ## @.str.1
	.asciz	"block size set: %d (target addr:0x%X)\n"

	.comm	_hi_mbox_isr_yield_limit,4,2    ## @hi_mbox_isr_yield_limit
L_.str.2:                               ## @.str.2
	.asciz	"bmi_write_memory for yield limit failed\n"

	.no_dead_strip	_ath6kl_set_htc_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_set_htc_params
_ath6kl_set_htc_params:                 ; @ath6kl_set_htc_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	lsl	w9, w2, #16
	cmp	x2, #0
	csel	w9, wzr, w9, eq
	orr	w22, w8, w9
Lloh0:
	adrp	x23, _hi_mbox_io_block_sz@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hi_mbox_io_block_sz@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x2, x22
	bl	_ath6kl_bmi_write_hi32
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_ath6kl_err
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh4:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	w0, [x23]
	bl	_HI_ITEM
	mov	x1, x0
	mov	x0, x20
	bl	_ath6kl_get_hi_item_addr
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_ath6kl_dbg
	cbz	w19, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _hi_mbox_isr_yield_limit@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hi_mbox_isr_yield_limit@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_ath6kl_bmi_write_hi32
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.6:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_7:
	mov	w21, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_mbox_io_block_sz,4,2        ; @hi_mbox_io_block_sz
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi_write_memory for IO block size failed\n"

	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
l_.str.1:                               ; @.str.1
	.asciz	"block size set: %d (target addr:0x%X)\n"

	.comm	_hi_mbox_isr_yield_limit,4,2    ; @hi_mbox_isr_yield_limit
l_.str.2:                               ; @.str.2
	.asciz	"bmi_write_memory for yield limit failed\n"

	.no_dead_strip	_ath6kl_set_htc_params
.subsections_via_symbols
