	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_get_devstate_bits
_asus_wmi_get_devstate_bits:            ## @asus_wmi_get_devstate_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ebx
	movl	$0, -12(%rbp)
	leaq	-12(%rbp), %rdx
	callq	_asus_wmi_get_devstate
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	-12(%rbp), %eax
	movq	_ASUS_WMI_DSTS_PRESENCE_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_ASUS_WMI_DSTS_STATUS_BIT@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	_ASUS_WMI_DSTS_UNKNOWN_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	andl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ## @ASUS_WMI_DSTS_PRESENCE_BIT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ASUS_WMI_DSTS_STATUS_BIT,4,2   ## @ASUS_WMI_DSTS_STATUS_BIT
	.comm	_ASUS_WMI_DSTS_UNKNOWN_BIT,4,2  ## @ASUS_WMI_DSTS_UNKNOWN_BIT
	.no_dead_strip	_asus_wmi_get_devstate_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_get_devstate_bits
_asus_wmi_get_devstate_bits:            ; @asus_wmi_get_devstate_bits
	.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, x2
	str	wzr, [sp, #12]
	add	x2, sp, #12
	bl	_asus_wmi_get_devstate
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _ASUS_WMI_DSTS_PRESENCE_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASUS_WMI_DSTS_PRESENCE_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _ASUS_WMI_DSTS_STATUS_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASUS_WMI_DSTS_STATUS_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _ASUS_WMI_DSTS_UNKNOWN_BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ASUS_WMI_DSTS_UNKNOWN_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	and	w0, w8, w19
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ; @ASUS_WMI_DSTS_PRESENCE_BIT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ASUS_WMI_DSTS_STATUS_BIT,4,2   ; @ASUS_WMI_DSTS_STATUS_BIT
	.comm	_ASUS_WMI_DSTS_UNKNOWN_BIT,4,2  ; @ASUS_WMI_DSTS_UNKNOWN_BIT
	.no_dead_strip	_asus_wmi_get_devstate_bits
.subsections_via_symbols
