	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_amd_get_bus_speed
_i2c_amd_get_bus_speed:                 ## @i2c_amd_get_bus_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_i2c_acpi_find_bus_speed
	movl	%eax, %r15d
	leaq	_i2c_amd_get_bus_speed.supported_speeds(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	$1, %ebx
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.1:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r14,%rbx,4), %r15d
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	shlq	$32, %rbx
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	addq	%rbx, %rax
	sarq	$30, %rax
	movl	(%rax,%r14), %eax
	cmpl	$999999, %eax                   ## imm = 0xF423F
	jle	LBB0_5
## %bb.7:
	cmpl	$1000000, %eax                  ## imm = 0xF4240
	je	LBB0_11
## %bb.8:
	cmpl	$1400000, %eax                  ## imm = 0x155CC0
	je	LBB0_12
## %bb.9:
	cmpl	$3400000, %eax                  ## imm = 0x33E140
	jne	LBB0_14
## %bb.10:
	movq	_speed3400k@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	cmpl	$100000, %eax                   ## imm = 0x186A0
	je	LBB0_6
## %bb.13:
	cmpl	$400000, %eax                   ## imm = 0x61A80
LBB0_14:
	movq	_speed400k@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_speed1000k@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_speed1400k@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_speed100k@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @i2c_amd_get_bus_speed.supported_speeds
_i2c_amd_get_bus_speed.supported_speeds:
	.long	0                               ## 0x0
	.long	100000                          ## 0x186a0
	.long	400000                          ## 0x61a80
	.long	1000000                         ## 0xf4240
	.long	1400000                         ## 0x155cc0
	.long	3400000                         ## 0x33e140

	.comm	_speed100k,4,2                  ## @speed100k
	.comm	_speed400k,4,2                  ## @speed400k
	.comm	_speed1000k,4,2                 ## @speed1000k
	.comm	_speed1400k,4,2                 ## @speed1400k
	.comm	_speed3400k,4,2                 ## @speed3400k
	.no_dead_strip	_i2c_amd_get_bus_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_amd_get_bus_speed
_i2c_amd_get_bus_speed:                 ; @i2c_amd_get_bus_speed
	.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
	bl	_i2c_acpi_find_bus_speed
	mov	x20, x0
Lloh0:
	adrp	x19, _i2c_amd_get_bus_speed.supported_speeds@PAGE
Lloh1:
	add	x19, x19, _i2c_amd_get_bus_speed.supported_speeds@PAGEOFF
	mov	x0, x19
	bl	_ARRAY_SIZE
	mov	w21, #1
	cmp	w0, #2
	b.lt	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, x21, lsl #2]
	cmp	w20, w8
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	mov	x0, x19
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_1
LBB0_3:
	mov	x8, #-4294967296
	add	x8, x8, x21, lsl #32
	asr	x8, x8, #30
	ldr	w8, [x19, x8]
	mov	w9, #16959
	movk	w9, #15, lsl #16
	cmp	w8, w9
	b.le	LBB0_8
; %bb.4:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.5:
	mov	w9, #23744
	movk	w9, #21, lsl #16
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.6:
	mov	w9, #57664
	movk	w9, #51, lsl #16
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
Lloh2:
	adrp	x8, _speed3400k@GOTPAGE
Lloh3:
	ldr	x8, [x8, _speed3400k@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	mov	w9, #34464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.9:
	mov	w9, #6784
	movk	w9, #6, lsl #16
	cmp	w8, w9
LBB0_10:
Lloh4:
	adrp	x8, _speed400k@GOTPAGE
Lloh5:
	ldr	x8, [x8, _speed400k@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh6:
	adrp	x8, _speed1000k@GOTPAGE
Lloh7:
	ldr	x8, [x8, _speed1000k@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh8:
	adrp	x8, _speed1400k@GOTPAGE
Lloh9:
	ldr	x8, [x8, _speed1400k@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _speed100k@GOTPAGE
Lloh11:
	ldr	x8, [x8, _speed100k@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @i2c_amd_get_bus_speed.supported_speeds
_i2c_amd_get_bus_speed.supported_speeds:
	.long	0                               ; 0x0
	.long	100000                          ; 0x186a0
	.long	400000                          ; 0x61a80
	.long	1000000                         ; 0xf4240
	.long	1400000                         ; 0x155cc0
	.long	3400000                         ; 0x33e140

	.comm	_speed100k,4,2                  ; @speed100k
	.comm	_speed400k,4,2                  ; @speed400k
	.comm	_speed1000k,4,2                 ; @speed1000k
	.comm	_speed1400k,4,2                 ; @speed1400k
	.comm	_speed3400k,4,2                 ; @speed3400k
	.no_dead_strip	_i2c_amd_get_bus_speed
.subsections_via_symbols
