	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3fwrn5_fw_get_bootinfo
_s3fwrn5_fw_get_bootinfo:               ## @s3fwrn5_fw_get_bootinfo
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -32(%rbp)
	movq	_S3FWRN5_FW_MSG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_S3FWRN5_FW_CMD_GET_BOOTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_s3fwrn5_fw_prep_msg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_s3fwrn5_fw_send_msg
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_kfree_skb
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.3:
	movq	-32(%rbp), %rdi
	movq	(%rdi), %rsi
	movq	(%rsi), %rax
	movq	_S3FWRN5_FW_RET_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_S3FWRN5_FW_HDR_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_memcpy
	movq	-32(%rbp), %rdi
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	callq	_kfree_skb
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3FWRN5_FW_MSG_CMD,4,2         ## @S3FWRN5_FW_MSG_CMD
	.comm	_S3FWRN5_FW_CMD_GET_BOOTINFO,4,2 ## @S3FWRN5_FW_CMD_GET_BOOTINFO
	.comm	_S3FWRN5_FW_RET_SUCCESS,8,3     ## @S3FWRN5_FW_RET_SUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_S3FWRN5_FW_HDR_SIZE,8,3        ## @S3FWRN5_FW_HDR_SIZE
	.no_dead_strip	_s3fwrn5_fw_get_bootinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3fwrn5_fw_get_bootinfo
_s3fwrn5_fw_get_bootinfo:               ; @s3fwrn5_fw_get_bootinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	str	xzr, [sp]
Lloh0:
	adrp	x8, _S3FWRN5_FW_MSG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3FWRN5_FW_MSG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _S3FWRN5_FW_CMD_GET_BOOTINFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S3FWRN5_FW_CMD_GET_BOOTINFO@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x4, #0
	mov	w5, #0
	bl	_s3fwrn5_fw_prep_msg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x2, sp
	mov	x0, x21
	bl	_s3fwrn5_fw_send_msg
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_kfree_skb
	tbnz	w19, #31, LBB0_7
; %bb.2:
	ldr	x0, [sp]
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh6:
	adrp	x10, _S3FWRN5_FW_RET_SUCCESS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S3FWRN5_FW_RET_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _S3FWRN5_FW_HDR_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S3FWRN5_FW_HDR_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	mov	w2, #10
	bl	_memcpy
	ldr	x0, [sp]
	b	LBB0_6
LBB0_4:
	mov	x19, x0
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	bl	_kfree_skb
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_S3FWRN5_FW_MSG_CMD,4,2         ; @S3FWRN5_FW_MSG_CMD
	.comm	_S3FWRN5_FW_CMD_GET_BOOTINFO,4,2 ; @S3FWRN5_FW_CMD_GET_BOOTINFO
	.comm	_S3FWRN5_FW_RET_SUCCESS,8,3     ; @S3FWRN5_FW_RET_SUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S3FWRN5_FW_HDR_SIZE,8,3        ; @S3FWRN5_FW_HDR_SIZE
	.no_dead_strip	_s3fwrn5_fw_get_bootinfo
.subsections_via_symbols
