	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_acpi_lookup_speed
_i2c_acpi_lookup_speed:                 ## @i2c_acpi_lookup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	leaq	-16(%rbp), %rsi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	-16(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_i2c_acpi_do_lookup
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	jg	LBB0_5
## %bb.4:
	movq	%rax, 24(%rbx)
LBB0_5:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_i2c_acpi_lookup_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_acpi_lookup_speed
_i2c_acpi_lookup_speed:                 ; @i2c_acpi_lookup_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_i2c_acpi_do_lookup
	cbnz	x0, LBB0_5
; %bb.2:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.4:
	str	x8, [x19, #24]
LBB0_5:
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_i2c_acpi_lookup_speed
.subsections_via_symbols
