	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_detect_key_usage
_wil_detect_key_usage:                  ## @wil_detect_key_usage
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_wdev_to_wil
	movq	%rax, %r14
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_WMI_KEY_USE_PAIRWISE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.wil_detect_key_usage(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_err
	movq	_WMI_KEY_USE_RX_GROUP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	movq	_key_usage_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_dbg_misc
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_KEY_USE_PAIRWISE,4,2       ## @WMI_KEY_USE_PAIRWISE
	.comm	_WMI_KEY_USE_RX_GROUP,4,2       ## @WMI_KEY_USE_RX_GROUP
	.comm	_WMI_KEY_USE_TX_GROUP,4,2       ## @WMI_KEY_USE_TX_GROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't determine GTK type\n"

L_.str.1:                               ## @.str.1
	.asciz	"detect_key_usage: -> %s\n"

	.comm	_key_usage_str,8,3              ## @key_usage_str
	.no_dead_strip	_wil_detect_key_usage
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.wil_detect_key_usage
l_switch.table.wil_detect_key_usage:
	.quad	_WMI_KEY_USE_RX_GROUP
	.quad	_WMI_KEY_USE_TX_GROUP
	.quad	_WMI_KEY_USE_RX_GROUP
	.quad	_WMI_KEY_USE_TX_GROUP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_detect_key_usage
_wil_detect_key_usage:                  ; @wil_detect_key_usage
	.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	x21, x1
	mov	x20, x0
	bl	_wdev_to_wil
	mov	x19, x0
	cbz	w21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WMI_KEY_USE_PAIRWISE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_KEY_USE_PAIRWISE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.wil_detect_key_usage@PAGE
Lloh3:
	add	x9, x9, l_switch.table.wil_detect_key_usage@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_err
Lloh6:
	adrp	x8, _WMI_KEY_USE_RX_GROUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_KEY_USE_RX_GROUP@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _key_usage_str@GOTPAGE
Lloh9:
	ldr	x8, [x8, _key_usage_str@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w2, [x8, x20, lsl #2]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_KEY_USE_PAIRWISE,4,2       ; @WMI_KEY_USE_PAIRWISE
	.comm	_WMI_KEY_USE_RX_GROUP,4,2       ; @WMI_KEY_USE_RX_GROUP
	.comm	_WMI_KEY_USE_TX_GROUP,4,2       ; @WMI_KEY_USE_TX_GROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't determine GTK type\n"

l_.str.1:                               ; @.str.1
	.asciz	"detect_key_usage: -> %s\n"

	.comm	_key_usage_str,8,3              ; @key_usage_str
	.no_dead_strip	_wil_detect_key_usage
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.wil_detect_key_usage
l_switch.table.wil_detect_key_usage:
	.quad	_WMI_KEY_USE_RX_GROUP
	.quad	_WMI_KEY_USE_TX_GROUP
	.quad	_WMI_KEY_USE_RX_GROUP
	.quad	_WMI_KEY_USE_TX_GROUP

.subsections_via_symbols
