	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freq_reg_info_regd
_freq_reg_info_regd:                    ## @freq_reg_info_regd
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r15
	cmpl	$0, (%rdx)
	jle	LBB0_11
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r13
	addq	%rbx, %r13
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_freq_in_rule_band
	movl	%eax, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$20, %edi
	callq	_MHZ_TO_KHZ
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_reg_does_bw_fit
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r12d, %r12d
	jne	LBB0_12
LBB0_11:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_freq_reg_info_regd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freq_reg_info_regd
_freq_reg_info_regd:                    ; @freq_reg_info_regd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	cbz	x2, LBB0_11
; %bb.1:
	mov	x19, x2
	ldr	w8, [x2]
Lloh2:
	adrp	x24, _ERANGE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ERANGE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x20, x1
	mov	x25, #0
	mov	x26, #0
	mov	w21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	x25, x25, #4
	cmp	x26, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #8]
	add	x22, x27, x25
	cbnz	w21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_freq_in_rule_band
	mov	x21, x0
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #20
	bl	_MHZ_TO_KHZ
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_reg_does_bw_fit
	cbz	w21, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_3
; %bb.8:
	add	x0, x27, x25
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x23, x24
	b	LBB0_11
LBB0_10:
	cmp	w21, #0
	csel	x23, x24, x23, eq
LBB0_11:
	ldr	w8, [x23]
	neg	w0, w8
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_freq_reg_info_regd
.subsections_via_symbols
