	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8903_setup_gpios
_max8903_setup_gpios:                   ## @max8903_setup_gpios
	.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	%rdi, %r12
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	(%r12), %r13
	cmpq	$0, 40(%r13)
	je	LBB0_1
## %bb.2:
	movl	(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	movl	(%r13), %edx
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movl	%edx, %edi
	callq	_gpio_get_value
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
LBB0_9:
	movl	4(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	4(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	movl	4(%r13), %edx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	movl	%edx, %edi
	movl	%r15d, %esi
	callq	_gpio_set_value
LBB0_13:
	cmpq	$0, 32(%r13)
	je	LBB0_14
## %bb.15:
	movl	8(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movl	8(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	movl	8(%r13), %edx
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_14:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_19:
	movl	%edx, %edi
	callq	_gpio_get_value
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_20:
	movl	12(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movl	12(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	movl	12(%r13), %edx
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_23:
	xorl	%esi, %esi
	movl	%r15d, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	sete	%sil
	movl	%edx, %edi
	callq	_gpio_set_value
LBB0_24:
	movl	16(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movl	16(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, %ebx
	movl	16(%r13), %edx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
LBB0_27:
	movl	20(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	movl	20(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %ebx
	movl	20(%r13), %edx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_5
LBB0_30:
	movl	24(%r13), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	movl	24(%r13), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, %ebx
	movl	24(%r13), %edx
	leaq	L_.str.8(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_34:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	$0, (%r14)
	movl	%r15d, 4(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed GPIO request for dok: %d err %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"When DC is wired, DOK should be wired as well.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed GPIO request for dcm: %d err %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed GPIO request for uok: %d err %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"When USB is wired, UOK should be wired.as well.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed GPIO request for cen: %d err %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed GPIO request for chg: %d err %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed GPIO request for flt: %d err %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed GPIO request for usus: %d err %d\n"

	.no_dead_strip	_max8903_setup_gpios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8903_setup_gpios
_max8903_setup_gpios:                   ; @max8903_setup_gpios
	.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	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	ldr	x23, [x19]
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x23]
	bl	_gpio_is_valid
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x23]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	mov	x22, x0
	ldr	w0, [x23]
	cbz	w22, LBB0_6
; %bb.3:
	stp	x0, x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_33
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_gpio_get_value
	cmp	x0, #0
	cset	w21, eq
LBB0_7:
	ldr	w0, [x23, #4]
	bl	_gpio_is_valid
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w1, [x23, #4]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	mov	x22, x0
	ldr	w0, [x23, #4]
	cbz	w22, LBB0_10
; %bb.9:
	stp	x0, x22, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_32
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
	bl	_gpio_set_value
LBB0_11:
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	w0, [x23, #8]
	bl	_gpio_is_valid
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w1, [x23, #8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	mov	x22, x0
	ldr	w0, [x23, #8]
	cbz	w22, LBB0_18
; %bb.14:
	stp	x0, x22, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_32
LBB0_15:
	mov	w24, #0
	b	LBB0_19
LBB0_16:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_33
LBB0_18:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_gpio_get_value
	cmp	x0, #0
	cset	w24, eq
LBB0_19:
	ldr	w0, [x23, #12]
	bl	_gpio_is_valid
	cbz	x0, LBB0_23
; %bb.20:
	ldr	w1, [x23, #12]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	mov	x22, x0
	ldr	w0, [x23, #12]
	cbz	w22, LBB0_22
; %bb.21:
	stp	x0, x22, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_32
LBB0_22:
	orr	w8, w21, w24
	cmp	w8, #0
	cset	w1, eq
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_gpio_set_value
LBB0_23:
	ldr	w0, [x23, #16]
	bl	_gpio_is_valid
	cbz	x0, LBB0_26
; %bb.24:
	ldr	w1, [x23, #16]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	cbz	w0, LBB0_26
; %bb.25:
	mov	x22, x0
	ldr	w8, [x23, #16]
	stp	x8, x22, [sp]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_32
LBB0_26:
	ldr	w0, [x23, #20]
	bl	_gpio_is_valid
	cbz	x0, LBB0_29
; %bb.27:
	ldr	w1, [x23, #20]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	cbz	w0, LBB0_29
; %bb.28:
	mov	x22, x0
	ldr	w8, [x23, #20]
	stp	x8, x22, [sp]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_32
LBB0_29:
	ldr	w0, [x23, #24]
	bl	_gpio_is_valid
	cbz	x0, LBB0_34
; %bb.30:
	ldr	w1, [x23, #24]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_devm_gpio_request
	cbz	w0, LBB0_34
; %bb.31:
	mov	x22, x0
	ldr	w8, [x23, #24]
	stp	x8, x22, [sp]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_32:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_33:
	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_34:
	mov	w22, #0
	stp	wzr, w21, [x20]
	str	w24, [x20, #8]
	b	LBB0_33
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed GPIO request for dok: %d err %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"When DC is wired, DOK should be wired as well.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed GPIO request for dcm: %d err %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed GPIO request for uok: %d err %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"When USB is wired, UOK should be wired.as well.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed GPIO request for cen: %d err %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed GPIO request for chg: %d err %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed GPIO request for flt: %d err %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed GPIO request for usus: %d err %d\n"

	.no_dead_strip	_max8903_setup_gpios
.subsections_via_symbols
