	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdcs_osdep1_read
_pdcs_osdep1_read:                      ## @pdcs_osdep1_read
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r15
	movq	_PDCS_ADDR_OSD1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_pdc_stable_read
	movq	_PDC_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movl	-64(%rbp), %edx
	leaq	L_.str(%rip), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sprintf
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movl	-60(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sprintf
	movslq	%eax, %r12
	addq	%rbx, %r12
	movl	-56(%rbp), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sprintf
	movslq	%eax, %rbx
	addq	%r12, %rbx
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sprintf
	addl	%eax, %ebx
	subl	%r15d, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PDCS_ADDR_OSD1,4,2             ## @PDCS_ADDR_OSD1
	.comm	_PDC_OK,8,3                     ## @PDC_OK
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%.8x\n"

	.no_dead_strip	_pdcs_osdep1_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdcs_osdep1_read
_pdcs_osdep1_read:                      ; @pdcs_osdep1_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x8, _PDCS_ADDR_OSD1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PDCS_ADDR_OSD1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #16
	bl	_pdc_stable_read
Lloh6:
	adrp	x8, _PDC_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PDC_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w2, [sp, #8]
Lloh9:
	adrp	x20, l_.str@PAGE
Lloh10:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_sprintf
	add	x21, x19, w0, sxtw
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_sprintf
	add	x21, x21, w0, sxtw
	ldr	w2, [sp, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_sprintf
	add	x21, x21, w0, sxtw
	ldr	w2, [sp, #20]
	mov	x0, x21
	mov	x1, x20
	bl	_sprintf
	add	w8, w21, w0
	sub	w0, w8, w19
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PDCS_ADDR_OSD1,4,2             ; @PDCS_ADDR_OSD1
	.comm	_PDC_OK,8,3                     ; @PDC_OK
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%.8x\n"

	.no_dead_strip	_pdcs_osdep1_read
.subsections_via_symbols
