	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dibx000_read_word
_dibx000_read_word:                     ## @dibx000_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	%r15d, %eax
	sarl	$8, %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movzbl	%r15b, %eax
	movl	%eax, 4(%rcx)
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	36(%rbx), %eax
	movq	24(%rbx), %rsi
	movl	%eax, 24(%rsi)
	movq	$0, 16(%rsi)
	movq	(%rbx), %rcx
	movq	%rcx, (%rsi)
	movl	$2, 8(%rsi)
	movl	%eax, 56(%rsi)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rsi)
	movq	8(%rbx), %rax
	movq	%rax, 32(%rsi)
	movl	$2, 40(%rsi)
	movl	32(%rbx), %edi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_4:
	movq	8(%rbx), %rax
	movl	(%rax), %ebx
	shll	$8, %ebx
	orl	4(%rax), %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not acquire lock\n"

	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
L_.str.1:                               ## @.str.1
	.asciz	"i2c read error on %d\n"

	.no_dead_strip	_dibx000_read_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dibx000_read_word
_dibx000_read_word:                     ; @dibx000_read_word
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_4
; %bb.1:
	asr	w8, w21, #8
	ldr	x9, [x20]
	and	w10, w21, #0xff
	stp	w8, w10, [x9]
	ldr	x0, [x20, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x1, [x20, #24]
	ldp	x8, x9, [x20]
	str	x8, [x1]
	ldp	w0, w8, [x20, #32]
	str	w8, [x1, #24]
	str	w8, [x1, #56]
Lloh0:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x1, #48]
	str	xzr, [x1, #16]
	str	x9, [x1, #32]
	mov	w8, #2
	str	w8, [x1, #8]
	str	w8, [x1, #40]
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.eq	LBB0_3
; %bb.2:
	str	x21, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_3:
	ldr	x8, [x20, #8]
	ldp	w9, w8, [x8]
	orr	w20, w8, w9, lsl #8
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not acquire lock\n"

	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
l_.str.1:                               ; @.str.1
	.asciz	"i2c read error on %d\n"

	.no_dead_strip	_dibx000_read_word
.subsections_via_symbols
