	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab3100_get_register_interruptible
_ab3100_get_register_interruptible:     ## @ab3100_get_register_interruptible
	.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
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	%esi, -28(%rbp)
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	8(%r14), %edi
	leaq	-28(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.5:
	movl	8(%r14), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_i2c_master_recv
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	cmpl	$1, %r15d
	je	LBB0_10
## %bb.8:
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	jmp	LBB0_9
LBB0_2:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_4:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
LBB0_9:
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movl	%r15d, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	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	"write error (send register address): %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"write error (send register address)\n  %d bytes transferred (expected 1)\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"write error (read register): %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"write error (read register)\n  %d bytes transferred (expected 1)\n"

	.no_dead_strip	_ab3100_get_register_interruptible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab3100_get_register_interruptible
_ab3100_get_register_interruptible:     ; @ab3100_get_register_interruptible
	.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, x2
	mov	x19, x0
	str	w1, [sp, #12]
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	w0, [x19, #8]
	add	x1, sp, #12
	mov	w2, #1
	bl	_i2c_master_send
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	cmp	w20, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	w2, #1
	bl	_i2c_master_recv
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	cmp	w20, #1
	b.ne	LBB0_10
; %bb.5:
	mov	w20, #0
	b	LBB0_12
LBB0_6:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x2, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write error (send register address): %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"write error (send register address)\n  %d bytes transferred (expected 1)\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"write error (read register): %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"write error (read register)\n  %d bytes transferred (expected 1)\n"

	.no_dead_strip	_ab3100_get_register_interruptible
.subsections_via_symbols
