	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp1653_get_fault
_adp1653_get_fault:                     ## @adp1653_get_fault
	.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, %r14
	addq	$16, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	_ADP1653_REG_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	orl	%eax, (%r14)
	je	LBB0_2
## %bb.3:
	movq	_ADP1653_REG_OUT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_V4L2_FLASH_LED_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_adp1653_update_hw
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADP1653_REG_FAULT,4,2          ## @ADP1653_REG_FAULT
	.comm	_ADP1653_REG_OUT_SEL,4,2        ## @ADP1653_REG_OUT_SEL
	.comm	_V4L2_FLASH_LED_MODE_NONE,4,2   ## @V4L2_FLASH_LED_MODE_NONE
	.no_dead_strip	_adp1653_get_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp1653_get_fault
_adp1653_get_fault:                     ; @adp1653_get_fault
	.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
	add	x0, x0, #16
	bl	_v4l2_get_subdevdata
	mov	x20, x0
Lloh0:
	adrp	x8, _ADP1653_REG_FAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADP1653_REG_FAULT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ADP1653_REG_OUT_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADP1653_REG_OUT_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _V4L2_FLASH_LED_MODE_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FLASH_LED_MODE_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	mov	x0, x19
	bl	_adp1653_update_hw
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x19]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADP1653_REG_FAULT,4,2          ; @ADP1653_REG_FAULT
	.comm	_ADP1653_REG_OUT_SEL,4,2        ; @ADP1653_REG_OUT_SEL
	.comm	_V4L2_FLASH_LED_MODE_NONE,4,2   ; @V4L2_FLASH_LED_MODE_NONE
	.no_dead_strip	_adp1653_get_fault
.subsections_via_symbols
