	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_REG_READ
	movq	_GPIO_DATA_PULLUP_DISABLE@GOTPCREL(%rip), %r8
	movq	_GPIO_CLOCK_PULLUP_DISABLE@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	testl	%r14d, %r14d
	movq	_GPIO_CLOCK_DIR_OUT@GOTPCREL(%rip), %rsi
	cmovel	(%rsi), %edi
	movq	_GPIO_CLOCK_DIR_IN@GOTPCREL(%rip), %rcx
	cmoveq	_GPIO_CLOCK_VAL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rdx), %esi
	movq	_GPIO_CLOCK_DIR_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	orl	(%rcx), %edi
	orl	(%r8), %esi
	andl	%eax, %esi
	orl	%edi, %esi
	movl	(%rbx), %edi
	callq	_REG_WRITE
	movq	_I2C_RISEFALL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_DATA_PULLUP_DISABLE,4,2   ## @GPIO_DATA_PULLUP_DISABLE
	.comm	_GPIO_CLOCK_PULLUP_DISABLE,4,2  ## @GPIO_CLOCK_PULLUP_DISABLE
	.comm	_GPIO_CLOCK_DIR_IN,4,2          ## @GPIO_CLOCK_DIR_IN
	.comm	_GPIO_CLOCK_DIR_MASK,4,2        ## @GPIO_CLOCK_DIR_MASK
	.comm	_GPIO_CLOCK_DIR_OUT,4,2         ## @GPIO_CLOCK_DIR_OUT
	.comm	_GPIO_CLOCK_VAL_MASK,4,2        ## @GPIO_CLOCK_VAL_MASK
	.comm	_I2C_RISEFALL_TIME,4,2          ## @I2C_RISEFALL_TIME
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_REG_READ
Lloh0:
	adrp	x8, _GPIO_DATA_PULLUP_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_DATA_PULLUP_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GPIO_CLOCK_PULLUP_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIO_CLOCK_PULLUP_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _GPIO_CLOCK_DIR_OUT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GPIO_CLOCK_DIR_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _GPIO_CLOCK_DIR_MASK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _GPIO_CLOCK_DIR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w19, #0
	csel	w10, w10, wzr, eq
	orr	w10, w11, w10
Lloh12:
	adrp	x11, _GPIO_CLOCK_VAL_MASK@GOTPAGE
Lloh13:
	ldr	x11, [x11, _GPIO_CLOCK_VAL_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x12, _GPIO_CLOCK_DIR_IN@GOTPAGE
Lloh15:
	ldr	x12, [x12, _GPIO_CLOCK_DIR_IN@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	ldr	w11, [x11]
	orr	w10, w10, w11
	orr	w8, w9, w8
	and	w8, w8, w0
	ldr	w0, [x20]
	orr	w1, w10, w8
	bl	_REG_WRITE
Lloh16:
	adrp	x8, _I2C_RISEFALL_TIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I2C_RISEFALL_TIME@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_DATA_PULLUP_DISABLE,4,2   ; @GPIO_DATA_PULLUP_DISABLE
	.comm	_GPIO_CLOCK_PULLUP_DISABLE,4,2  ; @GPIO_CLOCK_PULLUP_DISABLE
	.comm	_GPIO_CLOCK_DIR_IN,4,2          ; @GPIO_CLOCK_DIR_IN
	.comm	_GPIO_CLOCK_DIR_MASK,4,2        ; @GPIO_CLOCK_DIR_MASK
	.comm	_GPIO_CLOCK_DIR_OUT,4,2         ; @GPIO_CLOCK_DIR_OUT
	.comm	_GPIO_CLOCK_VAL_MASK,4,2        ; @GPIO_CLOCK_VAL_MASK
	.comm	_I2C_RISEFALL_TIME,4,2          ; @I2C_RISEFALL_TIME
	.no_dead_strip	_set_clock
.subsections_via_symbols
