	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib3000_read_reg
_dib3000_read_reg:                      ## @dib3000_read_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	%esi, %eax
	shrl	$8, %eax
	orl	$128, %eax
	movzbl	%al, %eax
	movl	%eax, -24(%rbp)
	movzbl	%bl, %eax
	movl	%eax, -20(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	$2, -72(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -64(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rcx, -56(%rbp)
	movl	$2, -48(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movl	%eax, -40(%rbp)
	movl	(%rdi), %edi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_i2c
LBB0_2:
	movl	-32(%rbp), %ecx
	shll	$8, %ecx
	orl	-28(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	movl	%ecx, %r8d
	xorl	%eax, %eax
	callq	_deb_i2c
	movl	-32(%rbp), %eax
	shll	$8, %eax
	orl	-28(%rbp), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c read error\n"

L_.str.1:                               ## @.str.1
	.asciz	"reading i2c bus (reg: %5d 0x%04x, val: %5d 0x%04x)\n"

	.no_dead_strip	_dib3000_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dib3000_read_reg
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dib3000_read_reg:                      ; @dib3000_read_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #128
	bfxil	w8, w1, #8, #7
	and	w9, w1, #0xff
	stp	w8, w9, [x29, #-32]
	sub	x8, x29, #32
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #48]
	ldp	w0, w8, [x0]
	str	w8, [sp, #56]
	sub	x9, x29, #40
	str	x9, [sp, #64]
	mov	w9, #2
Lloh5:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #72]
	str	w8, [sp, #80]
	add	x1, sp, #40
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_i2c
LBB0_2:
	ldp	w8, w9, [x29, #-40]
	orr	w8, w9, w8, lsl #8
	stp	x8, x8, [sp, #16]
	stp	x19, x19, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_i2c
	ldp	w8, w9, [x29, #-40]
	ldur	x10, [x29, #-24]
Lloh12:
	adrp	x11, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x11, [x11, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.3:
	orr	w0, w9, w8, lsl #8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c read error\n"

l_.str.1:                               ; @.str.1
	.asciz	"reading i2c bus (reg: %5d 0x%04x, val: %5d 0x%04x)\n"

	.no_dead_strip	_dib3000_read_reg
.subsections_via_symbols
