	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i3c_bus_set_mode               ## -- Begin function i3c_bus_set_mode
	.p2align	4, 0x90
_i3c_bus_set_mode:                      ## @i3c_bus_set_mode
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_i3c_bus_to_i3c_master
	movl	%ebx, (%r15)
	leal	-130(%rbx), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_9
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_16
## %bb.3:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.4:
	movq	_I3C_BUS_TYP_I3C_SCL_RATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r15)
	jmp	LBB0_14
LBB0_5:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	cmpq	$0, 16(%r15)
	jne	LBB0_14
	jmp	LBB0_8
LBB0_9:
	movq	16(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_11
## %bb.10:
	movq	%r14, 16(%r15)
	movq	%r14, %rdx
LBB0_11:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	cmpq	%rdx, %rcx
	jbe	LBB0_14
LBB0_13:
	movq	%rdx, 8(%r15)
	movq	%rdx, %rcx
	jmp	LBB0_14
LBB0_6:
	movq	_I3C_BUS_TYP_I3C_SCL_RATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r15)
	cmpq	$0, 16(%r15)
	jne	LBB0_14
LBB0_8:
	movq	%r14, 16(%r15)
LBB0_14:
	movq	16(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_dbg
	movq	8(%r15), %rax
	movq	_I3C_BUS_MAX_I3C_SCL_RATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_16
## %bb.15:
	movq	16(%r15), %rcx
	movq	_I3C_BUS_I2C_FM_PLUS_SCL_RATE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jbe	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I3C_BUS_TYP_I3C_SCL_RATE,8,3   ## @I3C_BUS_TYP_I3C_SCL_RATE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-scl = %ld Hz i3c-scl = %ld Hz\n"

	.comm	_I3C_BUS_MAX_I3C_SCL_RATE,8,3   ## @I3C_BUS_MAX_I3C_SCL_RATE
	.comm	_I3C_BUS_I2C_FM_PLUS_SCL_RATE,8,3 ## @I3C_BUS_I2C_FM_PLUS_SCL_RATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i3c_bus_set_mode               ; -- Begin function i3c_bus_set_mode
	.p2align	2
_i3c_bus_set_mode:                      ; @i3c_bus_set_mode
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_i3c_bus_to_i3c_master
	str	w21, [x19]
	sub	w8, w21, #130
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_16
; %bb.3:
	ldr	x3, [x19, #8]
	cbnz	x3, LBB0_14
; %bb.4:
Lloh0:
	adrp	x8, _I3C_BUS_TYP_I3C_SCL_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I3C_BUS_TYP_I3C_SCL_RATE@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x8]
	str	x3, [x19, #8]
	b	LBB0_14
LBB0_5:
	ldr	x3, [x19, #8]
	cbz	x3, LBB0_12
; %bb.6:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_14
	b	LBB0_13
LBB0_7:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
; %bb.8:
	str	x20, [x19, #16]
	mov	x8, x20
LBB0_9:
	ldr	x3, [x19, #8]
	cbz	x3, LBB0_11
; %bb.10:
	cmp	x3, x8
	b.ls	LBB0_14
LBB0_11:
	str	x8, [x19, #8]
	mov	x3, x8
	b	LBB0_14
LBB0_12:
Lloh3:
	adrp	x8, _I3C_BUS_TYP_I3C_SCL_RATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I3C_BUS_TYP_I3C_SCL_RATE@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	str	x3, [x19, #8]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_14
LBB0_13:
	str	x20, [x19, #16]
LBB0_14:
	ldr	x2, [x19, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _I3C_BUS_MAX_I3C_SCL_RATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I3C_BUS_MAX_I3C_SCL_RATE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hi	LBB0_16
; %bb.15:
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _I3C_BUS_I2C_FM_PLUS_SCL_RATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I3C_BUS_I2C_FM_PLUS_SCL_RATE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_18
LBB0_16:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
LBB0_18:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I3C_BUS_TYP_I3C_SCL_RATE,8,3   ; @I3C_BUS_TYP_I3C_SCL_RATE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-scl = %ld Hz i3c-scl = %ld Hz\n"

	.comm	_I3C_BUS_MAX_I3C_SCL_RATE,8,3   ; @I3C_BUS_MAX_I3C_SCL_RATE
	.comm	_I3C_BUS_I2C_FM_PLUS_SCL_RATE,8,3 ; @I3C_BUS_I2C_FM_PLUS_SCL_RATE
.subsections_via_symbols
