	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_clock
_set_clock:                             ## @set_clock
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	_RGIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_LPC_READ_REG
	movq	_GPIO_CLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	orl	%eax, %edx
	jmp	LBB0_3
LBB0_2:
	notl	%edx
	andl	%edx, %eax
	movq	_RGIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_LPC_WRITE_REG
	movq	_RGLVL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_LPC_READ_REG
	movl	(%r12), %edx
	notl	%edx
	andl	%eax, %edx
LBB0_3:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LPC_WRITE_REG                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RGIO,4,2                       ## @RGIO
	.comm	_GPIO_CLOCK,4,2                 ## @GPIO_CLOCK
	.comm	_RGLVL,4,2                      ## @RGLVL
	.no_dead_strip	_set_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_clock
_set_clock:                             ; @set_clock
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _RGIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RGIO@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_LPC_READ_REG
Lloh2:
	adrp	x21, _GPIO_CLOCK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GPIO_CLOCK@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w20, LBB0_2
; %bb.1:
	orr	w2, w8, w0
Lloh4:
	adrp	x20, _RGIO@GOTPAGE
Lloh5:
	ldr	x20, [x20, _RGIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x19
	bl	_LPC_WRITE_REG
Lloh6:
	adrp	x20, _RGLVL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _RGLVL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_LPC_READ_REG
	ldr	w8, [x21]
	bic	w2, w0, w8
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	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	_LPC_WRITE_REG
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RGIO,4,2                       ; @RGIO
	.comm	_GPIO_CLOCK,4,2                 ; @GPIO_CLOCK
	.comm	_RGLVL,4,2                      ; @RGLVL
	.no_dead_strip	_set_clock
.subsections_via_symbols
