	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirfsoc_gpio_set_output
_sirfsoc_gpio_set_output:               ## @sirfsoc_gpio_set_output
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %edi
	addl	%ebx, %edi
	callq	_readl
	movq	_SIRFSOC_GPIO_CTL_DATAOUT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%ecx
	andl	%eax, %ecx
	testl	%r12d, %r12d
	cmovnel	%edx, %ecx
	movq	_SIRFSOC_GPIO_CTL_INTR_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%ecx, %edi
	movq	_SIRFSOC_GPIO_CTL_OUT_EN_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	addl	(%r15), %ebx
	movl	%ebx, %esi
	callq	_writel
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIRFSOC_GPIO_CTL_DATAOUT_MASK,4,2 ## @SIRFSOC_GPIO_CTL_DATAOUT_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_EN_MASK,4,2 ## @SIRFSOC_GPIO_CTL_INTR_EN_MASK
	.comm	_SIRFSOC_GPIO_CTL_OUT_EN_MASK,4,2 ## @SIRFSOC_GPIO_CTL_OUT_EN_MASK
	.no_dead_strip	_sirfsoc_gpio_set_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirfsoc_gpio_set_output
_sirfsoc_gpio_set_output:               ; @sirfsoc_gpio_set_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_spin_lock_irqsave
	ldr	w8, [x22]
	add	w0, w8, w20
	bl	_readl
Lloh0:
	adrp	x8, _SIRFSOC_GPIO_CTL_DATAOUT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIRFSOC_GPIO_CTL_DATAOUT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w8, w8, w9, eq
Lloh3:
	adrp	x9, _SIRFSOC_GPIO_CTL_INTR_EN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_INTR_EN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh6:
	adrp	x9, _SIRFSOC_GPIO_CTL_OUT_EN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_OUT_EN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w8, [x22]
	add	w1, w8, w20
	bl	_writel
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIRFSOC_GPIO_CTL_DATAOUT_MASK,4,2 ; @SIRFSOC_GPIO_CTL_DATAOUT_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_EN_MASK,4,2 ; @SIRFSOC_GPIO_CTL_INTR_EN_MASK
	.comm	_SIRFSOC_GPIO_CTL_OUT_EN_MASK,4,2 ; @SIRFSOC_GPIO_CTL_OUT_EN_MASK
	.no_dead_strip	_sirfsoc_gpio_set_output
.subsections_via_symbols
