	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_switch_errors
_check_switch_errors:                   ## @check_switch_errors
	.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, %r14
	movq	8(%rdi), %rbx
	callq	_MIO_EMM_SWITCH
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readq
	movl	%eax, %ebx
	movq	_MIO_EMM_SWITCH_ERR0@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	_MIO_EMM_SWITCH_ERR1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_MIO_EMM_SWITCH_ERR2@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIO_EMM_SWITCH_ERR0,4,2        ## @MIO_EMM_SWITCH_ERR0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switch power class error\n"

	.comm	_MIO_EMM_SWITCH_ERR1,4,2        ## @MIO_EMM_SWITCH_ERR1
L_.str.1:                               ## @.str.1
	.asciz	"Switch hs timing error\n"

	.comm	_MIO_EMM_SWITCH_ERR2,4,2        ## @MIO_EMM_SWITCH_ERR2
L_.str.2:                               ## @.str.2
	.asciz	"Switch bus width error\n"

	.no_dead_strip	_check_switch_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_switch_errors
_check_switch_errors:                   ; @check_switch_errors
	.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
	ldr	x20, [x0, #8]
	bl	_MIO_EMM_SWITCH
	add	x0, x0, x20
	bl	_readq
	mov	x20, x0
Lloh0:
	adrp	x8, _MIO_EMM_SWITCH_ERR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIO_EMM_SWITCH_ERR0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
Lloh5:
	adrp	x8, _MIO_EMM_SWITCH_ERR1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIO_EMM_SWITCH_ERR1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh10:
	adrp	x8, _MIO_EMM_SWITCH_ERR2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MIO_EMM_SWITCH_ERR2@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MIO_EMM_SWITCH_ERR0,4,2        ; @MIO_EMM_SWITCH_ERR0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switch power class error\n"

	.comm	_MIO_EMM_SWITCH_ERR1,4,2        ; @MIO_EMM_SWITCH_ERR1
l_.str.1:                               ; @.str.1
	.asciz	"Switch hs timing error\n"

	.comm	_MIO_EMM_SWITCH_ERR2,4,2        ; @MIO_EMM_SWITCH_ERR2
l_.str.2:                               ; @.str.2
	.asciz	"Switch bus width error\n"

	.no_dead_strip	_check_switch_errors
.subsections_via_symbols
