	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_als_enable
_us5182d_als_enable:                    ## @us5182d_als_enable
	.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
	movq	(%rdi), %rax
	movq	_US5182D_ONESHOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_US5182D_ALS_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_us5182d_set_opmode
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movl	$0, 8(%rbx)
LBB0_3:
	xorl	%r14d, %r14d
	cmpl	$0, 12(%rbx)
	jne	LBB0_11
## %bb.4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	_US5182D_ALS_ONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_US5182D_ALS_PX@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_us5182d_set_opmode
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movl	$1, 12(%rbx)
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_US5182D_ONESHOT,8,3            ## @US5182D_ONESHOT
	.comm	_US5182D_ALS_ONLY,4,2           ## @US5182D_ALS_ONLY
	.comm	_US5182D_ALS_PX,4,2             ## @US5182D_ALS_PX
	.no_dead_strip	_us5182d_als_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_als_enable
_us5182d_als_enable:                    ; @us5182d_als_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _US5182D_ONESHOT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _US5182D_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _US5182D_ALS_ONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _US5182D_ALS_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_us5182d_set_opmode
	tbnz	w0, #31, LBB0_7
; %bb.2:
	str	wzr, [x19, #8]
LBB0_3:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _US5182D_ALS_PX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _US5182D_ALS_PX@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh8:
	adrp	x10, _US5182D_ALS_ONLY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _US5182D_ALS_ONLY@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_us5182d_set_opmode
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_US5182D_ONESHOT,8,3            ; @US5182D_ONESHOT
	.comm	_US5182D_ALS_ONLY,4,2           ; @US5182D_ALS_ONLY
	.comm	_US5182D_ALS_PX,4,2             ; @US5182D_ALS_PX
	.no_dead_strip	_us5182d_als_enable
.subsections_via_symbols
