	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_fw_info
_carl9170_fw_info:                      ## @carl9170_fw_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	_CARL9170FW_VERSION_GIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CARL9170FW_VERSION_YEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CARL9170FW_VERSION_MONTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CARL9170FW_VERSION_DAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_CARL9170FW_API_MIN_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_CARL9170FW_API_MAX_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_dev_info
	addq	$16, %rsp
	movq	_MOTD_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CARL9170FW_MOTD_DESC_CUR_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_carl9170_fw_find_desc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	_CARL9170FW_MOTD_RELEASE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strnlen
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_CARL9170FW_GET_YEAR
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_CARL9170FW_GET_MONTH
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_CARL9170FW_GET_DAY
	movl	%eax, %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_dev_info
	addq	$16, %rsp
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	$4, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver   API: %s 2%03d-%02d-%02d [%d-%d]\n"

	.comm	_CARL9170FW_VERSION_GIT,4,2     ## @CARL9170FW_VERSION_GIT
	.comm	_CARL9170FW_VERSION_YEAR,4,2    ## @CARL9170FW_VERSION_YEAR
	.comm	_CARL9170FW_VERSION_MONTH,4,2   ## @CARL9170FW_VERSION_MONTH
	.comm	_CARL9170FW_VERSION_DAY,4,2     ## @CARL9170FW_VERSION_DAY
	.comm	_CARL9170FW_API_MIN_VER,4,2     ## @CARL9170FW_API_MIN_VER
	.comm	_CARL9170FW_API_MAX_VER,4,2     ## @CARL9170FW_API_MAX_VER
	.comm	_MOTD_MAGIC,4,2                 ## @MOTD_MAGIC
	.comm	_CARL9170FW_MOTD_DESC_CUR_VER,4,2 ## @CARL9170FW_MOTD_DESC_CUR_VER
	.comm	_CARL9170FW_MOTD_RELEASE_LEN,4,2 ## @CARL9170FW_MOTD_RELEASE_LEN
L_.str.1:                               ## @.str.1
	.asciz	"firmware API: %.*s 2%03d-%02d-%02d\n"

	.no_dead_strip	_carl9170_fw_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_fw_info
_carl9170_fw_info:                      ; @carl9170_fw_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _CARL9170FW_VERSION_GIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARL9170FW_VERSION_GIT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _CARL9170FW_VERSION_YEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARL9170FW_VERSION_YEAR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _CARL9170FW_VERSION_MONTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARL9170FW_VERSION_MONTH@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _CARL9170FW_VERSION_DAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CARL9170FW_VERSION_DAY@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _CARL9170FW_API_MIN_VER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CARL9170FW_API_MIN_VER@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x8, _CARL9170FW_API_MAX_VER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CARL9170FW_API_MAX_VER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh20:
	adrp	x8, _MOTD_MAGIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MOTD_MAGIC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _CARL9170FW_MOTD_DESC_CUR_VER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CARL9170FW_MOTD_DESC_CUR_VER@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_carl9170_fw_find_desc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
Lloh26:
	adrp	x8, _CARL9170FW_MOTD_RELEASE_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CARL9170FW_MOTD_RELEASE_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_strnlen
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	x23, [x19, #8]
	ldr	w24, [x20]
	bl	_CARL9170FW_GET_YEAR
	mov	x25, x0
	mov	x0, x22
	bl	_CARL9170FW_GET_MONTH
	mov	x26, x0
	mov	x0, x22
	bl	_CARL9170FW_GET_DAY
	mov	x6, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	bl	_dev_info
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	w2, #4
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_strlcpy
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver   API: %s 2%03d-%02d-%02d [%d-%d]\n"

	.comm	_CARL9170FW_VERSION_GIT,4,2     ; @CARL9170FW_VERSION_GIT
	.comm	_CARL9170FW_VERSION_YEAR,4,2    ; @CARL9170FW_VERSION_YEAR
	.comm	_CARL9170FW_VERSION_MONTH,4,2   ; @CARL9170FW_VERSION_MONTH
	.comm	_CARL9170FW_VERSION_DAY,4,2     ; @CARL9170FW_VERSION_DAY
	.comm	_CARL9170FW_API_MIN_VER,4,2     ; @CARL9170FW_API_MIN_VER
	.comm	_CARL9170FW_API_MAX_VER,4,2     ; @CARL9170FW_API_MAX_VER
	.comm	_MOTD_MAGIC,4,2                 ; @MOTD_MAGIC
	.comm	_CARL9170FW_MOTD_DESC_CUR_VER,4,2 ; @CARL9170FW_MOTD_DESC_CUR_VER
	.comm	_CARL9170FW_MOTD_RELEASE_LEN,4,2 ; @CARL9170FW_MOTD_RELEASE_LEN
l_.str.1:                               ; @.str.1
	.asciz	"firmware API: %.*s 2%03d-%02d-%02d\n"

	.no_dead_strip	_carl9170_fw_info
.subsections_via_symbols
