	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_bus_speed
_fix_bus_speed:                         ## @fix_bus_speed
	.cfi_startproc
## %bb.0:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	cmpl	%r8d, %ecx
	jae	LBB0_7
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %edx
	callq	_ctrl_err
	movq	_WRONG_BUS_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	cmpl	%r9d, %ecx
	jae	LBB0_6
## %bb.4:
	cmpl	%ecx, %r8d
	je	LBB0_7
## %bb.5:
	movl	%ecx, %edx
	jmp	_change_bus_speed               ## TAILCALL
LBB0_6:
	cmpl	%r9d, %r8d
	jne	LBB0_8
LBB0_7:
	retq
LBB0_8:
	movl	%r9d, %edx
	jmp	_change_bus_speed               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Speed of bus %x and adapter %x mismatch\n"

	.comm	_WRONG_BUS_FREQUENCY,4,2        ## @WRONG_BUS_FREQUENCY
	.no_dead_strip	_fix_bus_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_bus_speed
_fix_bus_speed:                         ; @fix_bus_speed
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_3
; %bb.1:
	cmp	w3, w4
	b.hs	LBB0_7
; %bb.2:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x4
	bl	_ctrl_err
Lloh2:
	adrp	x8, _WRONG_BUS_FREQUENCY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WRONG_BUS_FREQUENCY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	cmp	w3, w5
	b.hs	LBB0_6
; %bb.4:
	cmp	w4, w3
	b.eq	LBB0_7
; %bb.5:
	mov	x2, x3
	b	_change_bus_speed
LBB0_6:
	cmp	w4, w5
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	mov	x2, x5
	b	_change_bus_speed
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speed of bus %x and adapter %x mismatch\n"

	.comm	_WRONG_BUS_FREQUENCY,4,2        ; @WRONG_BUS_FREQUENCY
	.no_dead_strip	_fix_bus_speed
.subsections_via_symbols
