	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_set_bitrate_mask
_ath9k_htc_set_bitrate_mask:            ## @ath9k_htc_set_bitrate_mask
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	(%rbx), %rbx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movq	_WMI_BITRATE_MASK_CMDID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_WMI_CMD_BUF
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)
	movq	(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_WMI_CMD_BUF
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	(%r13), %rdx
	movl	(%rax,%rdx,4), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath_dbg
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_WMI_BITRATE_MASK_CMDID,4,2     ## @WMI_BITRATE_MASK_CMDID
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Set bitrate masks: 0x%x, 0x%x\n"

	.no_dead_strip	_ath9k_htc_set_bitrate_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_set_bitrate_mask
_ath9k_htc_set_bitrate_mask:            ; @ath9k_htc_set_bitrate_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_ath9k_hw_common
	mov	x21, x0
	ldr	x20, [x20]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x20]
Lloh0:
	adrp	x20, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	str	w8, [sp, #24]
	ldr	x8, [x20]
	str	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	w0, [x9, x8, lsl #2]
	bl	_cpu_to_be32
	str	x0, [sp, #16]
Lloh2:
	adrp	x22, _WMI_BITRATE_MASK_CMDID@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WMI_BITRATE_MASK_CMDID@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_WMI_CMD_BUF
Lloh4:
	adrp	x23, _NL80211_BAND_5GHZ@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #8]
	ldr	x9, [x19]
	ldr	w0, [x9, x8, lsl #2]
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_WMI_CMD_BUF
Lloh6:
	adrp	x8, _CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w3, [x8, x9, lsl #2]
	ldr	x9, [x23]
	ldr	w4, [x8, x9, lsl #2]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_WMI_BITRATE_MASK_CMDID,4,2     ; @WMI_BITRATE_MASK_CMDID
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Set bitrate masks: 0x%x, 0x%x\n"

	.no_dead_strip	_ath9k_htc_set_bitrate_mask
.subsections_via_symbols
