	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdc_gpio_config
_rdc_gpio_config:                       ## @rdc_gpio_config
	.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	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_gpiochip_get_data
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_spin_lock
	movl	12(%r13), %edi
	xorl	%r14d, %r14d
	cmpl	$32, %r15d
	setb	%r14b
	movl	4(%r13,%r14,4), %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	4(,%r14,4), %rax
	movl	-44(%rbp), %edx
	btsl	%r15d, %edx
	movl	%edx, -44(%rbp)
	movl	12(%r13), %edi
	movl	(%r13,%rax), %esi
	callq	_pci_write_config_dword
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_rdc_gpio_set_value_impl
	xorl	%ebx, %ebx
LBB0_3:
	movq	%r13, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	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_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdc_gpio_config
_rdc_gpio_config:                       ; @rdc_gpio_config
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_gpiochip_get_data
	mov	x19, x0
	bl	_spin_lock
	ldr	w0, [x19, #12]
	cmp	w21, #32
	mov	w8, #4
	mov	w9, #8
	csel	x24, x9, x8, lo
	ldr	w1, [x19, x24]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w21
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x19, #12]
	ldr	w1, [x19, x24]
	bl	_pci_write_config_dword
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_rdc_gpio_set_value_impl
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x23
	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_config
.subsections_via_symbols
