	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9150_i2c_read_device
_da9150_i2c_read_device:                ## @da9150_i2c_read_device
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	%esi, -28(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	movl	$1, -64(%rbp)
	leaq	-28(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	(%rdi), %edi
	leaq	-64(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movl	4(%rbx), %eax
	movl	%eax, -40(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r15d, -64(%rbp)
	movq	%r14, -56(%rbp)
	movl	(%rbx), %edi
	leaq	-64(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_6
## %bb.4:
	testl	%ecx, %ecx
	jns	LBB0_2
## %bb.5:
	movl	%ecx, %eax
	jmp	LBB0_6
LBB0_1:
	testl	%eax, %eax
	js	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.no_dead_strip	_da9150_i2c_read_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9150_i2c_read_device
_da9150_i2c_read_device:                ; @da9150_i2c_read_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x21, x0
	stur	w1, [x29, #-36]
	ldp	w0, w8, [x0]
	str	w8, [sp, #32]
	mov	w8, #1
	str	w8, [sp, #8]
	sub	x8, x29, #36
	stp	x8, xzr, [sp, #16]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldp	w0, w8, [x21]
	str	w8, [sp, #32]
Lloh0:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	w20, [sp, #8]
	stp	x19, x8, [sp, #16]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.no_dead_strip	_da9150_i2c_read_device
.subsections_via_symbols
