	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77620_gpio_set
_max77620_gpio_set:                     ## @max77620_gpio_set
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	%rax, %r14
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	movl	4(%r14), %ebx
	movl	%r15d, %edi
	callq	_GPIO_REG_ADDR
	movq	_MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH,4,2 ## @MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH
	.comm	_MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW,4,2 ## @MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW
	.comm	_MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK,4,2 ## @MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CNFG_GPIO_OUT update failed: %d\n"

	.no_dead_strip	_max77620_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77620_gpio_set
_max77620_gpio_set:                     ; @max77620_gpio_set
	.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	x20, x2
	mov	x21, x1
	bl	_gpiochip_get_data
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	ldr	w22, [x0, #4]
	mov	x0, x21
	bl	_GPIO_REG_ADDR
	mov	x1, x0
Lloh4:
	adrp	x8, _MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x20
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_2
; %bb.1:
	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_2:
	mov	x2, x0
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH,4,2 ; @MAX77620_CNFG_GPIO_OUTPUT_VAL_HIGH
	.comm	_MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW,4,2 ; @MAX77620_CNFG_GPIO_OUTPUT_VAL_LOW
	.comm	_MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK,4,2 ; @MAX77620_CNFG_GPIO_OUTPUT_VAL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CNFG_GPIO_OUT update failed: %d\n"

	.no_dead_strip	_max77620_gpio_set
.subsections_via_symbols
