	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max9611_read_single
_max9611_read_single:                   ## @max9611_read_single
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_max9611_mux_conf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	_MAX9611_MUX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%rax), %ebx
	movl	4(%rax), %r12d
	callq	_mutex_lock
	movl	8(%r15), %edi
	movq	_MAX9611_REG_CTRL1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	movl	4(%r15), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	8(%r15), %edi
	movl	%r12d, %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%r13d, (%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_3:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max9611_mux_conf,8,3           ## @max9611_mux_conf
	.comm	_MAX9611_MUX_MASK,4,2           ## @MAX9611_MUX_MASK
	.comm	_MAX9611_REG_CTRL1,4,2          ## @MAX9611_REG_CTRL1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c write byte failed: 0x%2x - 0x%2x\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2c read word from 0x%2x failed\n"

	.no_dead_strip	_max9611_read_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max9611_read_single
_max9611_read_single:                   ; @max9611_read_single
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _max9611_mux_conf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max9611_mux_conf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w1, uxtw #3]
Lloh3:
	adrp	x9, _MAX9611_MUX_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX9611_MUX_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w10, w21, [x8]
	and	w23, w9, w10
	bl	_mutex_lock
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x24, _MAX9611_REG_CTRL1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MAX9611_REG_CTRL1@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x2, x23
	bl	_i2c_smbus_write_byte_data
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19, #4]
	ldr	w2, [x24]
	str	x23, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	str	w22, [x20]
	mov	w22, #0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
LBB0_6:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	b	LBB0_2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_max9611_mux_conf,8,3           ; @max9611_mux_conf
	.comm	_MAX9611_MUX_MASK,4,2           ; @MAX9611_MUX_MASK
	.comm	_MAX9611_REG_CTRL1,4,2          ; @MAX9611_REG_CTRL1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c write byte failed: 0x%2x - 0x%2x\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2c read word from 0x%2x failed\n"

	.no_dead_strip	_max9611_read_single
.subsections_via_symbols
