	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdc_gpio_get_value
_rdc_gpio_get_value:                    ## @rdc_gpio_get_value
	.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, %r14d
	movl	$0, -44(%rbp)
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	cmpl	$32, %r14d
	setae	%r13b
	movl	(%rax,%r13,4), %r15d
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movl	12(%rbx), %edi
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %edx
	movl	%r15d, %esi
	callq	_pci_write_config_dword
	movl	12(%rbx), %edi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %esi
	callq	_pci_read_config_dword
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	-44(%rbp), %ecx
	xorl	%eax, %eax
	btl	%r14d, %ecx
	setb	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rdc_gpio_get_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdc_gpio_get_value
_rdc_gpio_get_value:                    ; @rdc_gpio_get_value
	.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
	str	wzr, [sp, #12]
	bl	_gpiochip_get_data
	mov	x20, x0
	cmp	w19, #31
	cset	w8, hi
	lsl	x23, x8, #2
	ldr	w21, [x0, x23]
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock
	ldr	w0, [x20, #12]
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x23]
	mov	x1, x21
	bl	_pci_write_config_dword
	ldr	w0, [x20, #12]
	add	x2, sp, #12
	mov	x1, x21
	bl	_pci_read_config_dword
	mov	x0, x22
	bl	_spin_unlock
	ldr	w8, [sp, #12]
	lsr	w8, w8, w19
	and	w0, w8, #0x1
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rdc_gpio_get_value
.subsections_via_symbols
