	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab3100_get_register_page_interruptible
_ab3100_get_register_page_interruptible: ## @ab3100_get_register_page_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)
	movl	(%rdi), %eax
	andl	$-2, %eax
	cmpl	$160, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movl	12(%r12), %edi
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.7:
	movl	12(%r12), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_i2c_master_recv
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	xorl	%ebx, %ebx
	cmpl	%r15d, %r13d
	je	LBB0_11
## %bb.10:
	movl	8(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_6:
	movl	8(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_8:
	movl	8(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write error (send first register address): %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"write error (read register page): %d\n"

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

	.no_dead_strip	_ab3100_get_register_page_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_page_interruptible
_ab3100_get_register_page_interruptible: ; @ab3100_get_register_page_interruptible
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	w1, [sp, #12]
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	cmp	w8, #160
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_2:
	mov	x21, x3
	mov	x23, x2
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.3:
	ldr	w0, [x22, #12]
	add	x1, sp, #12
	mov	w2, #1
	bl	_i2c_master_send
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	cmp	w20, #1
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x22, #12]
	mov	x1, x23
	mov	x2, x21
	bl	_i2c_master_recv
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
	cmp	w20, w21
	b.ne	LBB0_12
; %bb.7:
	mov	w20, #0
	b	LBB0_14
LBB0_8:
	ldr	w0, [x22, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	w0, [x22, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_10:
	ldr	w0, [x22, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x2, x20
	bl	_dev_err
	b	LBB0_14
LBB0_12:
	ldr	w0, [x22, #8]
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x2, x20
	bl	_dev_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write error (send first register address): %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"write error (read register page): %d\n"

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

	.no_dead_strip	_ab3100_get_register_page_interruptible
.subsections_via_symbols
