	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max7301_get
_max7301_get:                           ## @max7301_get
	.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, %r12d
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leal	4(%r12), %r13d
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movl	%r13d, %ecx
	andl	$-4, %ecx
	movl	(%rax,%rcx), %eax
	leal	(%r12,%r12), %ecx
	andb	$6, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movq	_PIN_CONFIG_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movl	28(%r15), %edi
	addl	$36, %r12d
	movl	%r12d, %esi
	callq	*16(%r15)
	movl	%eax, %ebx
	andl	$1, %ebx
	jmp	LBB0_4
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movl	8(%r15), %eax
	xorl	%ebx, %ebx
	btl	%r13d, %eax
	setb	%bl
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIN_CONFIG_MASK,4,2            ## @PIN_CONFIG_MASK
	.no_dead_strip	_max7301_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max7301_get
_max7301_get:                           ; @max7301_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	bl	_gpiochip_get_data
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	w23, w20, #4
	add	x19, x0, #24
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21]
	and	w9, w23, #0xfffffffc
	ldr	w8, [x8, w9, uxtw]
	ubfiz	w9, w20, #1, #2
	lsr	w8, w8, w9
Lloh3:
	adrp	x9, _PIN_CONFIG_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIN_CONFIG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w8, w9
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	ldr	w0, [x21, #28]
	add	w1, w20, #36
	blr	x8
	and	w20, w0, #0x1
	b	LBB0_5
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, #8]
	lsr	w8, w8, w23
	and	w20, w8, #0x1
	b	LBB0_5
LBB0_4:
	neg	w20, w22
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIN_CONFIG_MASK,4,2            ; @PIN_CONFIG_MASK
	.no_dead_strip	_max7301_get
.subsections_via_symbols
