	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_get_device_info
_ims_pcu_get_device_info:               ## @ims_pcu_get_device_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ims_pcu_get_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_GET_FW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ims_pcu_execute_query
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movl	32(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movl	16(%r14), %edi
	movq	(%r14), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %r8d
	movl	16(%rax), %r9d
	movl	20(%rax), %r10d
	movl	24(%rax), %r11d
	movl	28(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	movq	_GET_BL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ims_pcu_execute_query
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	32(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	12(%r14), %edi
	movq	(%r14), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %r8d
	movl	16(%rax), %r9d
	movl	20(%rax), %r10d
	movl	24(%rax), %r11d
	movl	28(%rax), %r15d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movl	$4, %esi
	xorl	%eax, %eax
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	movq	_RESET_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ims_pcu_execute_query
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movl	32(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movq	_IMS_PCU_DATA_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.4(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	32(%r14), %edi
	movl	28(%r14), %edx
	movl	24(%r14), %ecx
	movl	20(%r14), %r8d
	movl	16(%r14), %r9d
	movl	8(%r14), %eax
	movl	12(%r14), %r10d
	leaq	L_.str.5(%rip), %rsi
	pushq	%rax
	pushq	%r10
	callq	_dev_dbg
	addq	$16, %rsp
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_FW_VERSION,4,2             ## @GET_FW_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET_FW_VERSION command failed, error: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%02d%02d%02d%02d.%c%c"

	.comm	_GET_BL_VERSION,4,2             ## @GET_BL_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"GET_BL_VERSION command failed, error: %d\n"

	.comm	_RESET_REASON,4,2               ## @RESET_REASON
L_.str.3:                               ## @.str.3
	.asciz	"RESET_REASON command failed, error: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"%02x"

	.comm	_IMS_PCU_DATA_OFFSET,8,3        ## @IMS_PCU_DATA_OFFSET
L_.str.5:                               ## @.str.5
	.asciz	"P/N: %s, MD: %s, S/N: %s, FW: %s, BL: %s, RR: %s\n"

	.no_dead_strip	_ims_pcu_get_device_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ims_pcu_get_device_info
_ims_pcu_get_device_info:               ; @ims_pcu_get_device_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ims_pcu_get_info
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GET_FW_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_FW_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ims_pcu_execute_query
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #16]
	ldr	x8, [x19]
	ldp	w3, w9, [x8, #8]
	ldp	w10, w11, [x8, #16]
	ldp	w12, w8, [x8, #24]
	stp	x12, x8, [sp, #24]
	stp	x10, x11, [sp, #8]
	str	x9, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh7:
	adrp	x8, _GET_BL_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GET_BL_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ims_pcu_execute_query
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19, #32]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #12]
	ldr	x8, [x19]
	ldp	w3, w9, [x8, #8]
	ldp	w10, w11, [x8, #16]
	ldp	w12, w8, [x8, #24]
	stp	x12, x8, [sp, #24]
	stp	x10, x11, [sp, #8]
	str	x9, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh14:
	adrp	x8, _RESET_REASON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RESET_REASON@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ims_pcu_execute_query
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.6:
	ldr	w0, [x19, #32]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _IMS_PCU_DATA_OFFSET@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IMS_PCU_DATA_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldp	w2, w0, [x19, #28]
	ldp	w4, w3, [x19, #20]
	ldp	w6, w5, [x19, #12]
	ldr	w7, [x19, #8]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_FW_VERSION,4,2             ; @GET_FW_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET_FW_VERSION command failed, error: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%02d%02d%02d%02d.%c%c"

	.comm	_GET_BL_VERSION,4,2             ; @GET_BL_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"GET_BL_VERSION command failed, error: %d\n"

	.comm	_RESET_REASON,4,2               ; @RESET_REASON
l_.str.3:                               ; @.str.3
	.asciz	"RESET_REASON command failed, error: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"%02x"

	.comm	_IMS_PCU_DATA_OFFSET,8,3        ; @IMS_PCU_DATA_OFFSET
l_.str.5:                               ; @.str.5
	.asciz	"P/N: %s, MD: %s, S/N: %s, FW: %s, BL: %s, RR: %s\n"

	.no_dead_strip	_ims_pcu_get_device_info
.subsections_via_symbols
