	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65218_gpio_request
_tps65218_gpio_request:                 ## @tps65218_gpio_request
	.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	%esi, %ebx
	movq	%rdi, %r12
	callq	_gpiochip_get_data
	movq	(%rax), %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_gpiochip_line_is_open_source
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_4:
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$2, %ebx
	je	LBB0_12
## %bb.7:
	cmpl	$1, %ebx
	je	LBB0_16
## %bb.8:
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.9:
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_gpiochip_line_is_open_drain
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	movq	_TPS65218_REG_SEQ7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_SEQ7_GPO1_SEQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TPS65218_PROTECT_L1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_tps65218_clear_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.11:
	movq	_TPS65218_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_CONFIG1_IO1_SEL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_gpiochip_line_is_open_drain
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movq	_TPS65218_REG_SEQ7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_SEQ7_GPO3_SEQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TPS65218_PROTECT_L1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_tps65218_clear_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.14:
	movq	_TPS65218_REG_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_CONFIG2_DC12_RST@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	jmp	LBB0_17
LBB0_16:
	movq	_TPS65218_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_CONFIG1_IO1_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TPS65218_PROTECT_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_17:
	movq	%r14, %rdi
	callq	_tps65218_clear_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.18:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_19:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_20:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't work as open source\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"GPO1 works only as open drain\n"

	.comm	_TPS65218_REG_SEQ7,4,2          ## @TPS65218_REG_SEQ7
	.comm	_TPS65218_SEQ7_GPO1_SEQ_MASK,4,2 ## @TPS65218_SEQ7_GPO1_SEQ_MASK
	.comm	_TPS65218_PROTECT_L1,4,2        ## @TPS65218_PROTECT_L1
	.comm	_TPS65218_REG_CONFIG1,4,2       ## @TPS65218_REG_CONFIG1
	.comm	_TPS65218_CONFIG1_IO1_SEL,4,2   ## @TPS65218_CONFIG1_IO1_SEL
L_.str.2:                               ## @.str.2
	.asciz	"GPO3 works only as open drain\n"

	.comm	_TPS65218_SEQ7_GPO3_SEQ_MASK,4,2 ## @TPS65218_SEQ7_GPO3_SEQ_MASK
	.comm	_TPS65218_REG_CONFIG2,4,2       ## @TPS65218_REG_CONFIG2
	.comm	_TPS65218_CONFIG2_DC12_RST,4,2  ## @TPS65218_CONFIG2_DC12_RST
	.no_dead_strip	_tps65218_gpio_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65218_gpio_request
_tps65218_gpio_request:                 ; @tps65218_gpio_request
	.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	x21, x1
	mov	x20, x0
	bl	_gpiochip_get_data
	ldr	x19, [x0]
	mov	x0, x20
	mov	x1, x21
	bl	_gpiochip_line_is_open_source
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	cmp	w21, #2
	b.eq	LBB0_11
; %bb.6:
	cmp	w21, #1
	b.eq	LBB0_15
; %bb.7:
	cbnz	w21, LBB0_3
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_gpiochip_line_is_open_drain
	cbz	w0, LBB0_18
; %bb.9:
Lloh5:
	adrp	x8, _TPS65218_REG_SEQ7@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TPS65218_REG_SEQ7@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _TPS65218_SEQ7_GPO1_SEQ_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TPS65218_SEQ7_GPO1_SEQ_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x20, _TPS65218_PROTECT_L1@GOTPAGE
Lloh12:
	ldr	x20, [x20, _TPS65218_PROTECT_L1@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_tps65218_clear_bits
	cbnz	w0, LBB0_4
; %bb.10:
Lloh13:
	adrp	x8, _TPS65218_REG_CONFIG1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TPS65218_REG_CONFIG1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _TPS65218_CONFIG1_IO1_SEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TPS65218_CONFIG1_IO1_SEL@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	x0, x20
	mov	w1, #2
	bl	_gpiochip_line_is_open_drain
	cbz	w0, LBB0_19
; %bb.12:
Lloh18:
	adrp	x8, _TPS65218_REG_SEQ7@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TPS65218_REG_SEQ7@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _TPS65218_SEQ7_GPO3_SEQ_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TPS65218_SEQ7_GPO3_SEQ_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x20, _TPS65218_PROTECT_L1@GOTPAGE
Lloh25:
	ldr	x20, [x20, _TPS65218_PROTECT_L1@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_tps65218_clear_bits
	cbnz	w0, LBB0_4
; %bb.13:
Lloh26:
	adrp	x8, _TPS65218_REG_CONFIG2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TPS65218_REG_CONFIG2@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _TPS65218_CONFIG2_DC12_RST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TPS65218_CONFIG2_DC12_RST@GOTPAGEOFF]
LBB0_14:
	ldr	w2, [x8]
	ldr	w3, [x20]
	b	LBB0_16
LBB0_15:
Lloh31:
	adrp	x8, _TPS65218_REG_CONFIG1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TPS65218_REG_CONFIG1@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _TPS65218_CONFIG1_IO1_SEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TPS65218_CONFIG1_IO1_SEL@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _TPS65218_PROTECT_L1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TPS65218_PROTECT_L1@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
LBB0_16:
	mov	x0, x19
	bl	_tps65218_clear_bits
	cbnz	w0, LBB0_4
; %bb.17:
	mov	w0, #0
	b	LBB0_4
LBB0_18:
	ldr	w0, [x20]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_19:
	ldr	w0, [x20]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't work as open source\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"GPO1 works only as open drain\n"

	.comm	_TPS65218_REG_SEQ7,4,2          ; @TPS65218_REG_SEQ7
	.comm	_TPS65218_SEQ7_GPO1_SEQ_MASK,4,2 ; @TPS65218_SEQ7_GPO1_SEQ_MASK
	.comm	_TPS65218_PROTECT_L1,4,2        ; @TPS65218_PROTECT_L1
	.comm	_TPS65218_REG_CONFIG1,4,2       ; @TPS65218_REG_CONFIG1
	.comm	_TPS65218_CONFIG1_IO1_SEL,4,2   ; @TPS65218_CONFIG1_IO1_SEL
l_.str.2:                               ; @.str.2
	.asciz	"GPO3 works only as open drain\n"

	.comm	_TPS65218_SEQ7_GPO3_SEQ_MASK,4,2 ; @TPS65218_SEQ7_GPO3_SEQ_MASK
	.comm	_TPS65218_REG_CONFIG2,4,2       ; @TPS65218_REG_CONFIG2
	.comm	_TPS65218_CONFIG2_DC12_RST,4,2  ; @TPS65218_CONFIG2_DC12_RST
	.no_dead_strip	_tps65218_gpio_request
.subsections_via_symbols
