	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_shutdown_en
_us5182d_shutdown_en:                   ## @us5182d_shutdown_en
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_US5182D_ONESHOT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_US5182D_REG_CFG0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_US5182D_CFG0_SHUTDOWN_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	notl	%ecx
	andl	%ecx, %eax
	orl	%r14d, %eax
	movl	16(%rbx), %edi
	movl	(%r12), %esi
	movl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	testl	%r14d, (%r15)
	je	LBB0_5
## %bb.4:
	movq	$0, 8(%rbx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_US5182D_ONESHOT,8,3            ## @US5182D_ONESHOT
	.comm	_US5182D_REG_CFG0,4,2           ## @US5182D_REG_CFG0
	.comm	_US5182D_CFG0_SHUTDOWN_EN,4,2   ## @US5182D_CFG0_SHUTDOWN_EN
	.no_dead_strip	_us5182d_shutdown_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_shutdown_en
_us5182d_shutdown_en:                   ; @us5182d_shutdown_en
	.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
	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_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh3:
	adrp	x22, _US5182D_REG_CFG0@GOTPAGE
Lloh4:
	ldr	x22, [x22, _US5182D_REG_CFG0@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh5:
	adrp	x21, _US5182D_CFG0_SHUTDOWN_EN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _US5182D_CFG0_SHUTDOWN_EN@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w8, w0, w8
	orr	w2, w8, w20
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	str	xzr, [x19, #8]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_US5182D_ONESHOT,8,3            ; @US5182D_ONESHOT
	.comm	_US5182D_REG_CFG0,4,2           ; @US5182D_REG_CFG0
	.comm	_US5182D_CFG0_SHUTDOWN_EN,4,2   ; @US5182D_CFG0_SHUTDOWN_EN
	.no_dead_strip	_us5182d_shutdown_en
.subsections_via_symbols
