	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_set
_gpio_set:                              ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	testb	%bl, %bl
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edx
	notl	%edx
	movq	(%r12), %rax
	andl	(%rax), %edx
	orl	%r15d, %edx
	movl	%edx, (%rax)
	movq	_SQ930_CTRL_GPIO@GOTPCREL(%rip), %rax
	movl	$256, %esi                      ## imm = 0x100
	orl	(%rax), %esi
	notl	%edx
	shll	$8, %edx
	movq	%r14, %rdi
	callq	_reg_w
LBB0_2:
	cmpl	$256, %ebx                      ## imm = 0x100
	jae	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	sarl	$8, %ebx
	sarl	$8, %r15d
	notl	%ebx
	movq	(%r12), %rax
	andl	4(%rax), %ebx
	orl	%r15d, %ebx
	movl	%ebx, 4(%rax)
	movq	_SQ930_CTRL_GPIO@GOTPCREL(%rip), %rax
	movl	$768, %esi                      ## imm = 0x300
	orl	(%rax), %esi
	notl	%ebx
	shll	$8, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQ930_CTRL_GPIO,4,2            ## @SQ930_CTRL_GPIO
	.no_dead_strip	_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_set
_gpio_set:                              ; @gpio_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	add	x19, x0, #8
Lloh0:
	adrp	x23, _SQ930_CTRL_GPIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SQ930_CTRL_GPIO@GOTPAGEOFF]
	tst	w2, #0xff
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w9, [x8]
	bic	w9, w9, w21
	orr	w9, w9, w20
	str	w9, [x8]
	ldr	w8, [x23]
	orr	w1, w8, #0x100
	mvn	w8, w9
	lsl	w2, w8, #8
	mov	x0, x19
	bl	_reg_w
LBB0_2:
	cmp	w21, #256
	b.hs	LBB0_4
; %bb.3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x22]
	ldr	w9, [x8, #4]
	bic	w9, w9, w21, asr #8
	orr	w9, w9, w20, asr #8
	str	w9, [x8, #4]
	ldr	w8, [x23]
	orr	w1, w8, #0x300
	mvn	w8, w9
	lsl	w2, w8, #8
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_reg_w
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SQ930_CTRL_GPIO,4,2            ; @SQ930_CTRL_GPIO
	.no_dead_strip	_gpio_set
.subsections_via_symbols
