	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egpio_get
_egpio_get:                             ## @egpio_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	%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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	addl	%r15d, %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movl	12(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_egpio_bit
	movl	%eax, %r14d
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_egpio_pos
	movl	%eax, %r13d
	leaq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %r14d
	movl	%r15d, %ecx
	shll	%cl, %r14d
	andl	4(%rbx), %r14d
	jmp	LBB0_3
LBB0_2:
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_egpio_readw
	movl	%eax, %ebx
	movl	4(%r12), %esi
	movb	(%r12), %cl
	shll	%cl, %r13d
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	andl	%ebx, %r14d
LBB0_3:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"egpio_get_value(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"readw(%p + %x) = %x\n"

	.no_dead_strip	_egpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egpio_get
_egpio_get:                             ; @egpio_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
	mov	x20, x0
	ldr	w8, [x0]
	add	w1, w8, w1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x20
	bl	_gpiochip_get_data
	mov	x22, x0
	ldr	w0, [x0, #12]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x1, x19
	bl	_egpio_bit
	mov	x20, x0
	ldr	w24, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_egpio_pos
	mov	x23, x0
	add	x1, x22, #8
	mov	x0, x19
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x22, #4]
	mov	w9, #1
	lsl	w9, w9, w19
	and	w8, w8, w9
	b	LBB0_3
LBB0_2:
	add	w19, w23, w24
	mov	x0, x21
	mov	x1, x19
	bl	_egpio_readw
	mov	x22, x0
	ldp	w8, w1, [x21]
	lsl	w8, w19, w8
	stp	x8, x22, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	and	w8, w22, w20
LBB0_3:
	cmp	w8, #0
	cset	w0, ne
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"egpio_get_value(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"readw(%p + %x) = %x\n"

	.no_dead_strip	_egpio_get
.subsections_via_symbols
