	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssp_check_fwbl
_ssp_check_fwbl:                        ## @ssp_check_fwbl
	.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	%rdi, %rbx
	callq	_ssp_get_firmware_rev
	movq	%rax, (%rbx)
	movq	_SSP_INVALID_REVISION@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_SSP_INVALID_REVISION2@GOTPCREL(%rip), %r15
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_2:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_ssp_get_firmware_rev
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_4:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_ssp_get_firmware_rev
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_6:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_ssp_get_firmware_rev
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_8:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_ssp_get_firmware_rev
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_10:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_dev_warn
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%r15), %rdx
LBB0_11:
	movq	16(%rbx), %rdi
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.12:
	cmpq	%rdx, %rax
	je	LBB0_15
## %bb.13:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_info
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.14:
	movq	_SSP_FW_DL_STATE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_16:
	movq	_SSP_FW_DL_STATE_NEED_TO_SCHEDULE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSP_INVALID_REVISION,8,3       ## @SSP_INVALID_REVISION
	.comm	_SSP_INVALID_REVISION2,8,3      ## @SSP_INVALID_REVISION2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid revision, trying %d time\n"

L_.str.1:                               ## @.str.1
	.asciz	"SSP_INVALID_REVISION\n"

	.comm	_SSP_FW_DL_STATE_NEED_TO_SCHEDULE,4,2 ## @SSP_FW_DL_STATE_NEED_TO_SCHEDULE
L_.str.2:                               ## @.str.2
	.asciz	"MCU Firm Rev : Old = %8u, New = %8u\n"

	.comm	_SSP_FW_DL_STATE_NONE,4,2       ## @SSP_FW_DL_STATE_NONE
	.no_dead_strip	_ssp_check_fwbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssp_check_fwbl
_ssp_check_fwbl:                        ; @ssp_check_fwbl
	.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	x19, x0
	bl	_ssp_get_firmware_rev
	str	x0, [x19]
Lloh0:
	adrp	x20, _SSP_INVALID_REVISION@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SSP_INVALID_REVISION@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _SSP_INVALID_REVISION2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SSP_INVALID_REVISION2@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_8
; %bb.1:
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dev_warn
	mov	x0, x19
	bl	_ssp_get_firmware_rev
	str	x0, [x19]
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_8
; %bb.2:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_dev_warn
	mov	x0, x19
	bl	_ssp_get_firmware_rev
	str	x0, [x19]
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_8
; %bb.3:
	ldr	x0, [x19, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_dev_warn
	mov	x0, x19
	bl	_ssp_get_firmware_rev
	str	x0, [x19]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	x9, [x21]
	cmp	x0, x9
	b.ne	LBB0_9
LBB0_5:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_dev_warn
	mov	x0, x19
	bl	_ssp_get_firmware_rev
	str	x0, [x19]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x2, x0
	ldr	x9, [x21]
	cmp	x0, x9
	b.ne	LBB0_9
LBB0_7:
	ldr	x0, [x19, #16]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_dev_warn
	ldr	x2, [x19]
	ldr	x8, [x20]
	ldr	x9, [x21]
	b	LBB0_9
LBB0_8:
	mov	x2, x0
LBB0_9:
	ldr	x0, [x19, #16]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	b.ne	LBB0_11
; %bb.10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _SSP_FW_DL_STATE_NEED_TO_SCHEDULE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSP_FW_DL_STATE_NEED_TO_SCHEDULE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	x3, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	ldp	x8, x9, [x19]
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _SSP_FW_DL_STATE_NEED_TO_SCHEDULE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SSP_FW_DL_STATE_NEED_TO_SCHEDULE@GOTPAGEOFF]
Lloh22:
	adrp	x11, _SSP_FW_DL_STATE_NONE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SSP_FW_DL_STATE_NONE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_12:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SSP_INVALID_REVISION,8,3       ; @SSP_INVALID_REVISION
	.comm	_SSP_INVALID_REVISION2,8,3      ; @SSP_INVALID_REVISION2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid revision, trying %d time\n"

l_.str.1:                               ; @.str.1
	.asciz	"SSP_INVALID_REVISION\n"

	.comm	_SSP_FW_DL_STATE_NEED_TO_SCHEDULE,4,2 ; @SSP_FW_DL_STATE_NEED_TO_SCHEDULE
l_.str.2:                               ; @.str.2
	.asciz	"MCU Firm Rev : Old = %8u, New = %8u\n"

	.comm	_SSP_FW_DL_STATE_NONE,4,2       ; @SSP_FW_DL_STATE_NONE
	.no_dead_strip	_ssp_check_fwbl
.subsections_via_symbols
