	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdcs_osdep1_write
_pdcs_osdep1_write:                     ## @pdcs_osdep1_write
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	_pdcs_osid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OS_ID_LINUX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	$17, %rbx
	jb	LBB0_9
## %bb.8:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	_PDCS_ADDR_OSD1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$64, %edx
	callq	_pdc_stable_write
	movq	_PDC_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_pdcs_osid,8,3                  ## @pdcs_osid
	.comm	_OS_ID_LINUX,8,3                ## @OS_ID_LINUX
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_EMSGSIZE,8,3                   ## @EMSGSIZE
	.comm	_PDCS_ADDR_OSD1,4,2             ## @PDCS_ADDR_OSD1
	.comm	_PDC_OK,8,3                     ## @PDC_OK
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_pdcs_osdep1_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdcs_osdep1_write
_pdcs_osdep1_write:                     ; @pdcs_osdep1_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	cbz	x20, LBB0_6
; %bb.2:
	cbz	x19, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _pdcs_osid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pdcs_osid@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _OS_ID_LINUX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OS_ID_LINUX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.4:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _EACCES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	cmp	x19, #17
	b.lo	LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_7
LBB0_12:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
Lloh23:
	adrp	x8, _PDCS_ADDR_OSD1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PDCS_ADDR_OSD1@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #64
	bl	_pdc_stable_write
Lloh26:
	adrp	x8, _PDC_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PDC_OK@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.13:
Lloh29:
	adrp	x8, _EIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_pdcs_osid,8,3                  ; @pdcs_osid
	.comm	_OS_ID_LINUX,8,3                ; @OS_ID_LINUX
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_EMSGSIZE,8,3                   ; @EMSGSIZE
	.comm	_PDCS_ADDR_OSD1,4,2             ; @PDCS_ADDR_OSD1
	.comm	_PDC_OK,8,3                     ; @PDC_OK
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_pdcs_osdep1_write
.subsections_via_symbols
