	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t5403_read
_t5403_read:                            ## @t5403_read
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_T5403_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movq	_T5403_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	jmp	LBB0_3
LBB0_2:
	movq	_T5403_PT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	_T5403_SCO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	movq	_t5403_pressure_conv_ms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	addl	$3, %edi
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$5, %edi
LBB0_7:
	callq	_msleep
	movl	4(%rbx), %edi
	movq	_T5403_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_smbus_read_word_data       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_T5403_COMMAND,4,2              ## @T5403_COMMAND
	.comm	_T5403_MODE_SHIFT,4,2           ## @T5403_MODE_SHIFT
	.comm	_T5403_PT,4,2                   ## @T5403_PT
	.comm	_T5403_SCO,4,2                  ## @T5403_SCO
	.comm	_t5403_pressure_conv_ms,8,3     ## @t5403_pressure_conv_ms
	.comm	_T5403_DATA,4,2                 ## @T5403_DATA
	.no_dead_strip	_t5403_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t5403_read
_t5403_read:                            ; @t5403_read
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _T5403_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T5403_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _T5403_MODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _T5403_MODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _T5403_PT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _T5403_PT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
LBB0_3:
Lloh9:
	adrp	x9, _T5403_SCO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _T5403_SCO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.4:
	cbz	w20, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _t5403_pressure_conv_ms@GOTPAGE
Lloh13:
	ldr	x8, [x8, _t5403_pressure_conv_ms@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	add	w0, w8, #3
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #5
LBB0_8:
	bl	_msleep
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x8, _T5403_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _T5403_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_read_word_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_T5403_COMMAND,4,2              ; @T5403_COMMAND
	.comm	_T5403_MODE_SHIFT,4,2           ; @T5403_MODE_SHIFT
	.comm	_T5403_PT,4,2                   ; @T5403_PT
	.comm	_T5403_SCO,4,2                  ; @T5403_SCO
	.comm	_t5403_pressure_conv_ms,8,3     ; @t5403_pressure_conv_ms
	.comm	_T5403_DATA,4,2                 ; @T5403_DATA
	.no_dead_strip	_t5403_read
.subsections_via_symbols
