	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ascot2e_read_regs
_ascot2e_read_regs:                     ## @ascot2e_read_regs
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -100(%rbp)
	movl	$1, -96(%rbp)
	leaq	-100(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$0, -80(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -76(%rbp)
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	%ecx, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	8(%rdi), %rdi
	leaq	-96(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	_EREMOTEIO@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%r14), %ebx
	cmpl	$1, %eax
	cmovel	%eax, %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	movq	8(%r12), %rdi
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.3:
	leaq	-72(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	subl	(%r14), %r13d
	cmpl	$1, %eax
	cmovel	%eax, %r13d
	testl	%eax, %eax
	movl	%r13d, %ebx
	cmovsl	%eax, %ebx
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:
	movl	-100(%rbp), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movl	-104(%rbp), %r8d                ## 4-byte Reload
	callq	_ascot2e_i2c_debug
	jmp	LBB0_6
LBB0_1:
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	movl	-100(%rbp), %r9d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	8(%r12), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	movl	-100(%rbp), %r9d
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %ecx
	callq	_dev_warn
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: I2C rw failed=%d addr=%02x reg=%02x\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.1:                               ## @.str.1
	.asciz	"%s: i2c rd failed=%d addr=%02x reg=%02x\n"

	.no_dead_strip	_ascot2e_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ascot2e_read_regs
_ascot2e_read_regs:                     ; @ascot2e_read_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	w8, #1
	stp	w1, w8, [sp, #4]
	add	x8, sp, #4
	str	x8, [sp, #16]
	ldr	w8, [x0]
	stp	wzr, w8, [sp, #24]
	str	w3, [sp, #32]
	str	x2, [sp, #40]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	ldr	x0, [x0, #8]
	add	x25, sp, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	mov	w23, #-1
	ccmp	w0, w23, #4, ne
Lloh6:
	adrp	x24, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EREMOTEIO@GOTPAGEOFF]
	ldr	w8, [x24]
	csneg	w22, w0, w8, le
	ldr	x0, [x19, #8]
	tbnz	w22, #31, LBB0_3
; %bb.1:
	add	x1, x25, #24
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	ccmp	w0, w23, #4, ne
	ldr	w8, [x24]
	csneg	w22, w0, w8, le
	tbnz	w22, #31, LBB0_4
; %bb.2:
	ldr	w1, [sp, #4]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	mov	x4, x20
	bl	_ascot2e_i2c_debug
	mov	w22, #0
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w4, [x19]
	ldr	w5, [sp, #4]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w4, [x19]
	ldr	w5, [sp, #4]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x3, x22
	bl	_dev_warn
LBB0_6:
	ldr	x8, [sp, #56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: I2C rw failed=%d addr=%02x reg=%02x\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.1:                               ; @.str.1
	.asciz	"%s: i2c rd failed=%d addr=%02x reg=%02x\n"

	.no_dead_strip	_ascot2e_read_regs
.subsections_via_symbols
