	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps68470_gpio_get
_tps68470_gpio_get:                     ## @tps68470_gpio_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	8(%rax), %rdi
	movq	_TPS68470_N_REGULAR_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%r15d, %r12d
	jbe	LBB0_1
## %bb.2:
	movq	_TPS68470_REG_GPDO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TPS68470_REG_SGPO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	_TPS68470_REG_SGPO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	cmovbel	%r12d, %eax
	subl	%eax, %r15d
	movl	-36(%rbp), %r14d
	movl	%r15d, %edi
	callq	_BIT
	xorl	%ebx, %ebx
	testl	%r14d, %eax
	setne	%bl
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS68470_REG_GPDO,4,2          ## @TPS68470_REG_GPDO
	.comm	_TPS68470_N_REGULAR_GPIO,4,2    ## @TPS68470_N_REGULAR_GPIO
	.comm	_TPS68470_REG_SGPO,4,2          ## @TPS68470_REG_SGPO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg 0x%x read failed\n"

	.no_dead_strip	_tps68470_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps68470_gpio_get
_tps68470_gpio_get:                     ; @tps68470_gpio_get
	.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, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _TPS68470_REG_GPDO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS68470_REG_GPDO@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TPS68470_N_REGULAR_GPIO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TPS68470_N_REGULAR_GPIO@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x9]
Lloh5:
	adrp	x23, _TPS68470_REG_SGPO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TPS68470_REG_SGPO@GOTPAGEOFF]
	cmp	w22, w19
	csel	x8, x8, x23, hi
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20]
	ldr	w2, [x23]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	cmp	w22, w19
	csel	w8, wzr, w22, hi
	sub	w0, w19, w8
	ldr	w19, [sp, #12]
	bl	_BIT
	tst	w0, w19
	cset	w21, ne
LBB0_3:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS68470_REG_GPDO,4,2          ; @TPS68470_REG_GPDO
	.comm	_TPS68470_N_REGULAR_GPIO,4,2    ; @TPS68470_N_REGULAR_GPIO
	.comm	_TPS68470_REG_SGPO,4,2          ; @TPS68470_REG_SGPO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg 0x%x read failed\n"

	.no_dead_strip	_tps68470_gpio_get
.subsections_via_symbols
