	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_update_channel_param
_p54_update_channel_param:              ## @p54_update_channel_param
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	8(%r15), %rcx
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	leaq	(%rsi,%rsi,4), %rsi
	cmpq	%rbx, (%rcx,%rsi,8)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rdx), %esi
	testl	%edx, %edx
	movl	%esi, %edx
	jg	LBB0_2
LBB0_4:
	cmpl	4(%r15), %eax
	jge	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_p54_get_band_from_freq
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movslq	(%r15), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r15)
	movq	16(%r15), %rdx
	movl	%eax, %esi
	incl	(%rdx,%rsi,4)
	movq	8(%r15), %r12
	leaq	(%rcx,%rcx,4), %r13
	leaq	(%r12,%r13,8), %r15
	movq	%rbx, (%r12,%r13,8)
	movl	%eax, 8(%r12,%r13,8)
	movq	%rbx, %rdi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, 32(%r12,%r13,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12,%r13,8)
	jmp	LBB0_9
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:
	leaq	(%rcx,%rsi,8), %r15
LBB0_9:
	orq	%r14, 16(%r15)
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_p54_update_channel_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_update_channel_param
_p54_update_channel_param:              ; @p54_update_channel_param
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	ldr	x9, [x21, #8]
	mov	w10, #40
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	umaddl	x22, w11, w10, x9
	ldr	x12, [x22]
	cmp	x12, x20
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w11, w11, #1
	b.ge	LBB0_2
LBB0_4:
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_p54_get_band_from_freq
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldrsw	x8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	mov	w9, w0
	lsl	x9, x9, #2
	ldp	x11, x10, [x21, #8]
	ldr	w12, [x10, x9]
	add	w12, w12, #1
	str	w12, [x10, x9]
	mov	w9, #40
	madd	x22, x8, x9, x11
	str	x20, [x22]
	str	w0, [x22, #8]
	mov	x0, x20
	bl	_ieee80211_frequency_to_channel
	str	w0, [x22, #32]
	stp	xzr, xzr, [x22, #16]
LBB0_7:
	ldr	x8, [x22, #16]
	orr	x8, x8, x19
	str	x8, [x22, #16]
	b	LBB0_9
LBB0_8:
	mov	x22, #0
LBB0_9:
	mov	x0, x22
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_p54_update_channel_param
.subsections_via_symbols
