	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2255_get_fx2fw
_s2255_get_fx2fw:                       ## @s2255_get_fx2fw
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_S2255_VR_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S2255_VR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-96(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$2, %r9d
	callq	_s2255_vendor_req
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_2:
	movzbl	-96(%rbp), %r15d
	movzbl	-95(%rbp), %ebx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	shll	$8, %ebx
	orl	%r15d, %ebx
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S2255_VR_FW,4,2                ## @S2255_VR_FW
	.comm	_S2255_VR_IN,4,2                ## @S2255_VR_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get fw error: %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Get FW %x %x\n"

	.no_dead_strip	_s2255_get_fx2fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2255_get_fx2fw
_s2255_get_fx2fw:                       ; @s2255_get_fx2fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _S2255_VR_FW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S2255_VR_FW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _S2255_VR_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S2255_VR_IN@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	add	x4, sp, #8
	mov	w2, #0
	mov	w3, #0
	mov	w5, #2
	bl	_s2255_vendor_req
	tbz	w0, #31, LBB0_2
; %bb.1:
	and	w3, w0, #0xff
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_dprintk
LBB0_2:
	ldrb	w20, [sp, #8]
	ldrb	w21, [sp, #9]
	str	x21, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	mov	x3, x20
	bl	_dprintk
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	bfi	w20, w21, #8, #8
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_S2255_VR_FW,4,2                ; @S2255_VR_FW
	.comm	_S2255_VR_IN,4,2                ; @S2255_VR_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get fw error: %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Get FW %x %x\n"

	.no_dead_strip	_s2255_get_fx2fw
.subsections_via_symbols
