	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_get_token_bit
_kbd_get_token_bit:                     ## @kbd_get_token_bit
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_kbd_tokens@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dell_smbios_find_token
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	4(%rax), %esi
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dell_fill_request
	movq	_CLASS_TOKEN_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SELECT_TOKEN_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_dell_send_request
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-24(%rbp), %rax
	movl	4(%rax), %ecx
	xorl	%eax, %eax
	cmpl	(%rbx), %ecx
	sete	%al
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kbd_tokens,8,3                 ## @kbd_tokens
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CLASS_TOKEN_READ,4,2           ## @CLASS_TOKEN_READ
	.comm	_SELECT_TOKEN_STD,4,2           ## @SELECT_TOKEN_STD
	.no_dead_strip	_kbd_get_token_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_get_token_bit
_kbd_get_token_bit:                     ; @kbd_get_token_bit
	.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
Lloh0:
	adrp	x20, _kbd_tokens@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kbd_tokens@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x0, x19
	b.ls	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8, x19, lsl #2]
	bl	_dell_smbios_find_token
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w1, [x0, #4]
	add	x0, sp, #8
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_dell_fill_request
Lloh2:
	adrp	x8, _CLASS_TOKEN_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CLASS_TOKEN_READ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SELECT_TOKEN_STD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SELECT_TOKEN_STD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_dell_send_request
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w8, [x8, #4]
	ldr	w9, [x19]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_kbd_tokens,8,3                 ; @kbd_tokens
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CLASS_TOKEN_READ,4,2           ; @CLASS_TOKEN_READ
	.comm	_SELECT_TOKEN_STD,4,2           ; @SELECT_TOKEN_STD
	.no_dead_strip	_kbd_get_token_bit
.subsections_via_symbols
