	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_get_wmi_edmg_channel
_wil_get_wmi_edmg_channel:              ## @wil_get_wmi_edmg_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	movq	_WIL_EDMG_BW_CONFIGURATION@GOTPCREL(%rip), %rsi
	cmpq	%rax, (%rsi)
	jne	LBB0_11
## %bb.3:
	cmpq	$130, %rdx
	je	LBB0_8
## %bb.4:
	cmpq	$129, %rdx
	je	LBB0_9
## %bb.5:
	cmpq	$128, %rdx
	jne	LBB0_10
## %bb.6:
	movl	$9, %edi
	jmp	LBB0_7
LBB0_1:
	movq	$0, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	jmp	LBB0_12
LBB0_8:
	movl	$10, %edi
	jmp	LBB0_7
LBB0_9:
	movl	$11, %edi
LBB0_7:
	movq	%rcx, %rsi
	popq	%rbp
	jmp	_wil_spec2wmi_ch                ## TAILCALL
LBB0_10:
	leaq	L_.str(%rip), %rsi
LBB0_12:
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIL_EDMG_BW_CONFIGURATION,8,3  ## @WIL_EDMG_BW_CONFIGURATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported edmg channel bitmap 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported EDMG BW configuration %d\n"

	.no_dead_strip	_wil_get_wmi_edmg_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_get_wmi_edmg_channel
_wil_get_wmi_edmg_channel:              ; @wil_get_wmi_edmg_channel
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_6
; %bb.1:
	mov	x8, x1
Lloh0:
	adrp	x9, _WIL_EDMG_BW_CONFIGURATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WIL_EDMG_BW_CONFIGURATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x1
	b.ne	LBB0_7
; %bb.2:
	cmp	x2, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	x2, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	x2, #128
	b.ne	LBB0_11
; %bb.5:
	mov	w0, #9
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	str	xzr, [x3]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x8
	b	LBB0_12
LBB0_8:
	mov	w0, #10
	b	LBB0_10
LBB0_9:
	mov	w0, #11
LBB0_10:
	mov	x1, x3
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_wil_spec2wmi_ch
LBB0_11:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	bl	_wil_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WIL_EDMG_BW_CONFIGURATION,8,3  ; @WIL_EDMG_BW_CONFIGURATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported edmg channel bitmap 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported EDMG BW configuration %d\n"

	.no_dead_strip	_wil_get_wmi_edmg_channel
.subsections_via_symbols
