	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_set_freq
_zd1201_set_freq:                       ## @zd1201_set_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	cmpq	$0, (%rbx)
	movzwl	8(%rbx), %eax
	je	LBB0_2
## %bb.1:
	movswl	%ax, %edi
	callq	_ieee80211_frequency_to_channel
LBB0_2:
	movq	_ZD1201_RID_CNFOWNCHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movswl	%ax, %edx
	movq	%r14, %rdi
	callq	_zd1201_setconfig16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_zd1201_mac_reset
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD1201_RID_CNFOWNCHANNEL,4,2   ## @ZD1201_RID_CNFOWNCHANNEL
	.no_dead_strip	_zd1201_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_set_freq
_zd1201_set_freq:                       ; @zd1201_set_freq
	.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	x20, x2
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x20]
	ldrh	w0, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	sxth	w0, w0
	bl	_ieee80211_frequency_to_channel
LBB0_2:
Lloh0:
	adrp	x8, _ZD1201_RID_CNFOWNCHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZD1201_RID_CNFOWNCHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sxth	w2, w0
	mov	x0, x19
	bl	_zd1201_setconfig16
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_zd1201_mac_reset
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD1201_RID_CNFOWNCHANNEL,4,2   ; @ZD1201_RID_CNFOWNCHANNEL
	.no_dead_strip	_zd1201_set_freq
.subsections_via_symbols
