	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocv_derive_all_parameters      ## -- Begin function ocv_derive_all_parameters
	.p2align	4, 0x90
_ocv_derive_all_parameters:             ## @ocv_derive_all_parameters
	.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	%rdi, %rbx
	movl	16(%rdi), %esi
	movl	20(%rdi), %edx
	xorl	%edi, %edi
	callq	_ieee80211_chan_to_freq
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	16(%rbx), %esi
	xorl	%edi, %edi
	callq	_get_oper_class
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_oper_class_bw_to_int
	movl	%eax, 12(%rbx)
	movl	$0, 8(%rbx)
	movq	(%r14), %rcx
	movq	_BW40PLUS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.5:
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_BW40MINUS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movl	$-1, 8(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error interpreting OCI: unrecognized opclass/channel pair (%d/%d)"

L_.str.1:                               ## @.str.1
	.asciz	"Error interpreting OCI: Unrecognized opclass (%d)"

	.comm	_BW40PLUS,8,3                   ## @BW40PLUS
	.comm	_BW40MINUS,8,3                  ## @BW40MINUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocv_derive_all_parameters      ; -- Begin function ocv_derive_all_parameters
	.p2align	2
_ocv_derive_all_parameters:             ; @ocv_derive_all_parameters
	.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	x19, x0
	ldp	w1, w2, [x0, #16]
	mov	x0, #0
	bl	_ieee80211_chan_to_freq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w1, [x19, #16]
	mov	x0, #0
	bl	_get_oper_class
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_oper_class_bw_to_int
	stp	wzr, w0, [x19, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _BW40PLUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BW40PLUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	mov	w8, #1
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	w2, w8, [x19, #16]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
Lloh13:
	adrp	x9, _BW40MINUS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BW40MINUS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	w0, #0
	mov	w8, #-1
LBB0_9:
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error interpreting OCI: unrecognized opclass/channel pair (%d/%d)"

l_.str.1:                               ; @.str.1
	.asciz	"Error interpreting OCI: Unrecognized opclass (%d)"

	.comm	_BW40PLUS,8,3                   ; @BW40PLUS
	.comm	_BW40MINUS,8,3                  ; @BW40MINUS
.subsections_via_symbols
