	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_set_freq
_prism54_set_freq:                      ## @prism54_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jl	LBB0_3
## %bb.1:
	cmpl	$1, 4(%rbx)
	jne	LBB0_5
## %bb.2:
	shrl	$5, %eax
	imulq	$175921861, %rax, %rdi          ## imm = 0xA7C5AC5
	shrq	$39, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_channel_of_freq
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movl	%eax, -20(%rbp)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_DOT11_OID_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovnel	%eax, %ecx
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOT11_OID_CHANNEL,4,2          ## @DOT11_OID_CHANNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_prism54_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_set_freq
_prism54_set_freq:                      ; @prism54_set_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x2
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x20]
	cmp	w0, #1000
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	lsr	w8, w0, #5
	mov	w9, #23237
	movk	w9, #2684, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #39
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_channel_of_freq
LBB0_3:
	str	w0, [sp, #12]
	cbz	w0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _DOT11_OID_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOT11_OID_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
Lloh6:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DOT11_OID_CHANNEL,4,2          ; @DOT11_OID_CHANNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_prism54_set_freq
.subsections_via_symbols
