	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5593r_read_adc
_ad5593r_read_adc:                      ## @ad5593r_read_adc
	.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	%rdx, %r14
	movl	%esi, %r15d
	movl	(%rdi), %edi
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	_AD5593R_MODE_CONF@GOTPCREL(%rip), %rax
	movq	_AD5592R_REG_ADC_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_i2c_smbus_write_word_swapped
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_AD5593R_MODE_ADC_READBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_word_swapped
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5593R_MODE_CONF,4,2          ## @AD5593R_MODE_CONF
	.comm	_AD5592R_REG_ADC_SEQ,4,2        ## @AD5592R_REG_ADC_SEQ
	.comm	_AD5593R_MODE_ADC_READBACK,4,2  ## @AD5593R_MODE_ADC_READBACK
	.no_dead_strip	_ad5593r_read_adc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5593r_read_adc
_ad5593r_read_adc:                      ; @ad5593r_read_adc
	.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
	mov	x19, x2
	mov	x21, x1
	ldr	w0, [x0]
	bl	_to_i2c_client
	mov	x20, x0
Lloh0:
	adrp	x8, _AD5593R_MODE_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5593R_MODE_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AD5592R_REG_ADC_SEQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AD5592R_REG_ADC_SEQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_i2c_smbus_write_word_swapped
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _AD5593R_MODE_ADC_READBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD5593R_MODE_ADC_READBACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_word_swapped
	mov	x8, x0
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
	mov	x0, x8
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5593R_MODE_CONF,4,2          ; @AD5593R_MODE_CONF
	.comm	_AD5592R_REG_ADC_SEQ,4,2        ; @AD5592R_REG_ADC_SEQ
	.comm	_AD5593R_MODE_ADC_READBACK,4,2  ; @AD5593R_MODE_ADC_READBACK
	.no_dead_strip	_ad5593r_read_adc
.subsections_via_symbols
