	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa2400_rf_set_channel
_sa2400_rf_set_channel:                 ## @sa2400_rf_set_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_ieee80211_frequency_to_channel
	movq	(%r14), %rcx
	movslq	%eax, %r14
	movzbl	-4(%rcx,%r14,4), %edx
	movq	_sa2400_chan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%r14,4), %r15d
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_write_sa2400
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sa2400_write_phy_antenna
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_write_sa2400
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$47952, %edx                    ## imm = 0xBB50
	callq	_write_sa2400
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$128, %edx
	callq	_write_sa2400
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_sa2400                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sa2400_chan,8,3                ## @sa2400_chan
	.no_dead_strip	_sa2400_rf_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa2400_rf_set_channel
_sa2400_rf_set_channel:                 ; @sa2400_rf_set_channel
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x1]
	ldr	w0, [x8]
	bl	_ieee80211_frequency_to_channel
	mov	x20, x0
	ldr	x8, [x21]
	sbfiz	x9, x20, #2, #32
	sub	x9, x9, #4
	ldrb	w2, [x8, x9]
Lloh0:
	adrp	x8, _sa2400_chan@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sa2400_chan@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w21, [x8, x9]
	mov	x0, x19
	mov	w1, #7
	bl	_write_sa2400
	mov	x0, x19
	mov	x1, x20
	bl	_sa2400_write_phy_antenna
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_write_sa2400
	mov	x0, x19
	mov	w1, #1
	mov	w2, #47952
	bl	_write_sa2400
	mov	x0, x19
	mov	w1, #2
	mov	w2, #128
	bl	_write_sa2400
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	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	_write_sa2400
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sa2400_chan,8,3                ; @sa2400_chan
	.no_dead_strip	_sa2400_rf_set_channel
.subsections_via_symbols
