	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_set_xclk_i2c_speed
_em28xx_set_xclk_i2c_speed:             ## @em28xx_set_xclk_i2c_speed
	.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
	movq	%rdi, %rbx
	movq	_em28xx_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,8), %esi
	movl	4(%rax,%rcx,8), %r14d
	movq	_EM28XX_XCLK_IR_RC5_MODE@GOTPCREL(%rip), %rax
	movq	_EM28XX_XCLK_FREQUENCY_12MHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	testl	%esi, %esi
	cmovnel	%esi, %edx
	movq	_EM28XX_R0F_XCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_em28xx_write_reg
	movq	_EM28XX_I2C_CLK_WAIT_ENABLE@GOTPCREL(%rip), %rax
	movq	_EM28XX_I2C_FREQ_100_KHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	testl	%r14d, %r14d
	cmovnel	%r14d, %edx
	movl	%edx, %eax
	andl	$3, %eax
	movl	%eax, 8(%rbx)
	cmpl	$0, 12(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_EM28XX_R06_I2C_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_em28xx_write_reg
LBB0_2:
	movl	$50, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_em28xx_boards,8,3              ## @em28xx_boards
	.comm	_EM28XX_XCLK_IR_RC5_MODE,4,2    ## @EM28XX_XCLK_IR_RC5_MODE
	.comm	_EM28XX_XCLK_FREQUENCY_12MHZ,4,2 ## @EM28XX_XCLK_FREQUENCY_12MHZ
	.comm	_EM28XX_R0F_XCLK,4,2            ## @EM28XX_R0F_XCLK
	.comm	_EM28XX_I2C_CLK_WAIT_ENABLE,4,2 ## @EM28XX_I2C_CLK_WAIT_ENABLE
	.comm	_EM28XX_I2C_FREQ_100_KHZ,4,2    ## @EM28XX_I2C_FREQ_100_KHZ
	.comm	_EM28XX_R06_I2C_CLK,4,2         ## @EM28XX_R06_I2C_CLK
	.no_dead_strip	_em28xx_set_xclk_i2c_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_set_xclk_i2c_speed
_em28xx_set_xclk_i2c_speed:             ; @em28xx_set_xclk_i2c_speed
	.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, x0
Lloh0:
	adrp	x8, _em28xx_boards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _em28xx_boards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldp	w9, w20, [x8]
Lloh3:
	adrp	x8, _EM28XX_XCLK_IR_RC5_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EM28XX_XCLK_IR_RC5_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _EM28XX_XCLK_FREQUENCY_12MHZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EM28XX_XCLK_FREQUENCY_12MHZ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	cmp	w9, #0
	csel	w2, w8, w9, eq
Lloh9:
	adrp	x8, _EM28XX_R0F_XCLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EM28XX_R0F_XCLK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_em28xx_write_reg
Lloh12:
	adrp	x8, _EM28XX_I2C_CLK_WAIT_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EM28XX_I2C_CLK_WAIT_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EM28XX_I2C_FREQ_100_KHZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EM28XX_I2C_FREQ_100_KHZ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w2, w8, w20, eq
	and	w8, w2, #0x3
	str	w8, [x19, #8]
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _EM28XX_R06_I2C_CLK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EM28XX_R06_I2C_CLK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_write_reg
LBB0_2:
	mov	w0, #50
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_em28xx_boards,8,3              ; @em28xx_boards
	.comm	_EM28XX_XCLK_IR_RC5_MODE,4,2    ; @EM28XX_XCLK_IR_RC5_MODE
	.comm	_EM28XX_XCLK_FREQUENCY_12MHZ,4,2 ; @EM28XX_XCLK_FREQUENCY_12MHZ
	.comm	_EM28XX_R0F_XCLK,4,2            ; @EM28XX_R0F_XCLK
	.comm	_EM28XX_I2C_CLK_WAIT_ENABLE,4,2 ; @EM28XX_I2C_CLK_WAIT_ENABLE
	.comm	_EM28XX_I2C_FREQ_100_KHZ,4,2    ; @EM28XX_I2C_FREQ_100_KHZ
	.comm	_EM28XX_R06_I2C_CLK,4,2         ; @EM28XX_R06_I2C_CLK
	.no_dead_strip	_em28xx_set_xclk_i2c_speed
.subsections_via_symbols
