	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_pkt_footer
_pdc_pkt_footer:                        ## @pdc_pkt_footer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ATA_REG_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	$32, %ecx
	leal	1(%rax), %r8d
	movl	%eax, %edx
	movl	%ecx, (%rsi,%rdx,4)
	movl	4(%rdi), %ecx
	addl	$2, %eax
	movl	%ecx, (%rsi,%r8,4)
LBB0_2:
	movq	_PDC_LAST_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ATA_REG_CMD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	$32, %ecx
	leal	1(%rax), %r8d
	movl	%eax, %edx
	movl	%ecx, (%rsi,%rdx,4)
	movl	8(%rdi), %ecx
	addl	$2, %eax
	movl	%ecx, (%rsi,%r8,4)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.comm	_ATA_REG_DEVICE,4,2             ## @ATA_REG_DEVICE
	.comm	_PDC_LAST_REG,4,2               ## @PDC_LAST_REG
	.comm	_ATA_REG_CMD,4,2                ## @ATA_REG_CMD
	.no_dead_strip	_pdc_pkt_footer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_pkt_footer
_pdc_pkt_footer:                        ; @pdc_pkt_footer
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ATA_REG_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_REG_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, #0x20
	add	w9, w2, #1
	str	w8, [x1, w2, uxtw #2]
	ldr	w8, [x0, #4]
	add	w2, w2, #2
	str	w8, [x1, w9, uxtw #2]
LBB0_2:
Lloh6:
	adrp	x8, _PDC_LAST_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PDC_LAST_REG@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ATA_REG_CMD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATA_REG_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w8, w8, #0x20
	str	w8, [x1, w2, uxtw #2]
	add	w8, w2, #1
	ldr	w9, [x0, #8]
	add	w0, w2, #2
	str	w9, [x1, w8, uxtw #2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.comm	_ATA_REG_DEVICE,4,2             ; @ATA_REG_DEVICE
	.comm	_PDC_LAST_REG,4,2               ; @PDC_LAST_REG
	.comm	_ATA_REG_CMD,4,2                ; @ATA_REG_CMD
	.no_dead_strip	_pdc_pkt_footer
.subsections_via_symbols
