	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_write_raw
_axp20x_write_raw:                      ## @axp20x_write_raw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	movq	_IIO_CHAN_INFO_OFFSET@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_8
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	cmpl	$700000, %r12d                  ## imm = 0xAAE60
	jne	LBB0_8
LBB0_3:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setne	%dil
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.5:
	movq	_AXP20X_GPIO10_IN_RANGE_GPIO0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_AXP20X_GPIO10_IN_RANGE_GPIO0_VAL
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_AXP20X_GPIO10_IN_RANGE_GPIO1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_AXP20X_GPIO10_IN_RANGE_GPIO1_VAL
LBB0_7:
	movl	(%r15), %edi
	movq	_AXP20X_GPIO10_IN_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_OFFSET,8,3       ## @IIO_CHAN_INFO_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO0,4,2 ## @AXP20X_GPIO10_IN_RANGE_GPIO0
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO1,4,2 ## @AXP20X_GPIO10_IN_RANGE_GPIO1
	.comm	_AXP20X_GPIO10_IN_RANGE,4,2     ## @AXP20X_GPIO10_IN_RANGE
	.no_dead_strip	_axp20x_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_write_raw
_axp20x_write_raw:                      ; @axp20x_write_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x4
	mov	x21, x2
	mov	x20, x1
	bl	_iio_priv
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	cbz	w21, LBB0_3
; %bb.2:
	mov	w8, #44640
	movk	w8, #10, lsl #16
	cmp	w21, w8
	b.ne	LBB0_6
LBB0_3:
	cmp	w21, #0
	cset	w0, ne
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _AXP20X_GPIO10_IN_RANGE_GPIO0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AXP20X_GPIO10_IN_RANGE_GPIO0@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_AXP20X_GPIO10_IN_RANGE_GPIO0_VAL
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _AXP20X_GPIO10_IN_RANGE_GPIO1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AXP20X_GPIO10_IN_RANGE_GPIO1@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	bl	_AXP20X_GPIO10_IN_RANGE_GPIO1_VAL
LBB0_8:
	mov	x3, x0
Lloh12:
	adrp	x8, _AXP20X_GPIO10_IN_RANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AXP20X_GPIO10_IN_RANGE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_OFFSET,8,3       ; @IIO_CHAN_INFO_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO0,4,2 ; @AXP20X_GPIO10_IN_RANGE_GPIO0
	.comm	_AXP20X_GPIO10_IN_RANGE_GPIO1,4,2 ; @AXP20X_GPIO10_IN_RANGE_GPIO1
	.comm	_AXP20X_GPIO10_IN_RANGE,4,2     ; @AXP20X_GPIO10_IN_RANGE
	.no_dead_strip	_axp20x_write_raw
.subsections_via_symbols
