	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpi_exp_gpio_set
_rpi_exp_gpio_set:                      ## @rpi_exp_gpio_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_gpiochip_get_data
	movq	_RPI_EXP_GPIO_BASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r14d, %ecx
	movl	%ecx, -32(%rbp)
	movl	%ebx, -28(%rbp)
	movl	(%rax), %edi
	movq	_RPI_FIRMWARE_SET_GPIO_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$8, %ecx
	callq	_rpi_firmware_property
	movl	-32(%rbp), %r8d
	movl	%eax, %ecx
	orl	%r8d, %ecx
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RPI_EXP_GPIO_BASE,4,2          ## @RPI_EXP_GPIO_BASE
	.comm	_RPI_FIRMWARE_SET_GPIO_STATE,4,2 ## @RPI_FIRMWARE_SET_GPIO_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set GPIO %u state (%d %x)\n"

	.no_dead_strip	_rpi_exp_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpi_exp_gpio_set
_rpi_exp_gpio_set:                      ; @rpi_exp_gpio_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x1
	mov	x20, x0
	bl	_gpiochip_get_data
Lloh0:
	adrp	x8, _RPI_EXP_GPIO_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPI_EXP_GPIO_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w19
	stp	w8, w21, [sp, #8]
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _RPI_FIRMWARE_SET_GPIO_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPI_FIRMWARE_SET_GPIO_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #8
	bl	_rpi_firmware_property
	ldr	w4, [sp, #8]
	orr	w8, w0, w4
	cbz	w8, LBB0_2
; %bb.1:
	mov	x3, x0
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RPI_EXP_GPIO_BASE,4,2          ; @RPI_EXP_GPIO_BASE
	.comm	_RPI_FIRMWARE_SET_GPIO_STATE,4,2 ; @RPI_FIRMWARE_SET_GPIO_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set GPIO %u state (%d %x)\n"

	.no_dead_strip	_rpi_exp_gpio_set
.subsections_via_symbols
