	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dib8000_read_word
___dib8000_read_word:                   ## @__dib8000_read_word
	.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	%esi, %eax
	sarl	$8, %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movzbl	%r14b, %eax
	movl	%eax, 4(%rcx)
	movq	16(%rdi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	24(%rbx), %eax
	sarl	%eax
	movq	16(%rbx), %rsi
	movl	%eax, (%rsi)
	movq	$0, 24(%rsi)
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rsi)
	movl	$2, 16(%rsi)
	movl	%eax, 32(%rsi)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rsi)
	movq	8(%rbx), %rax
	movq	%rax, 40(%rsi)
	movl	$2, 48(%rsi)
	movl	28(%rbx), %edi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dprintk
LBB0_2:
	movq	8(%rbx), %rcx
	movl	(%rcx), %eax
	shll	$8, %eax
	orl	4(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c read error on %d\n"

	.no_dead_strip	___dib8000_read_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dib8000_read_word
___dib8000_read_word:                   ; @__dib8000_read_word
	.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
	asr	w8, w1, #8
	ldr	x9, [x0]
	and	w10, w1, #0xff
	stp	w8, w10, [x9]
	ldr	x0, [x0, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldp	x9, x1, [x19, #8]
	ldr	x8, [x19]
	str	x8, [x1, #8]
	ldp	w8, w0, [x19, #24]
	asr	w8, w8, #1
	str	w8, [x1]
	str	w8, [x1, #32]
Lloh0:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x1, #56]
	str	xzr, [x1, #24]
	str	x9, [x1, #40]
	mov	w8, #2
	str	w8, [x1, #16]
	str	w8, [x1, #48]
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintk
LBB0_2:
	ldr	x8, [x19, #8]
	ldp	w9, w8, [x8]
	orr	w0, w8, w9, lsl #8
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c read error on %d\n"

	.no_dead_strip	___dib8000_read_word
.subsections_via_symbols
