	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genwqe_ffdc_buff_read          ## -- Begin function genwqe_ffdc_buff_read
	.p2align	4, 0x90
_genwqe_ffdc_buff_read:                 ## @genwqe_ffdc_buff_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$0, -52(%rbp)
	movl	%esi, %edi
	callq	_GENWQE_UID_OFFS
	movq	_IO_EXTENDED_ERROR_POINTER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	___genwqe_readq
	movl	%eax, %r14d
	leal	-1(%r14), %eax
	cmpl	$-3, %eax
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	ja	LBB0_11
## %bb.1:
	movl	%ebx, %edi
	callq	_GENWQE_UID_OFFS
	movl	%eax, %r13d
	orl	%r14d, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	___genwqe_readq
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%r12d
	cmpl	$8, %r12d
	je	LBB0_19
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	movl	%ebx, %edi
	callq	_GENWQE_UID_OFFS
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_IO_EXTENDED_DIAG_MAP
	orl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	___genwqe_readq
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %ecx
	shrl	$24, %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movzwl	%ax, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%eax, %r14d
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_18
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_GENWQE_EXTENDED_DIAG_SELECTOR
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_GENWQE_UID_OFFS
	movq	_IO_EXTENDED_DIAG_SELECTOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	callq	___genwqe_writeq
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	cmovel	-76(%rbp), %r12d                ## 4-byte Folded Reload
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	shll	$16, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %edi
	callq	_GENWQE_UID_OFFS
	movl	%eax, %r13d
	movq	_IO_EXTENDED_DIAG_READ_MBX@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	___genwqe_readq
	movl	%r14d, %r9d
	orl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	-52(%rbp), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	callq	_set_reg_idx
	incl	%r14d
	cmpl	%r14d, %r12d
	jne	LBB0_16
	jmp	LBB0_17
LBB0_19:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	addl	$8, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	___genwqe_readq
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	incl	%ecx
	cmpl	$1, %ecx
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %r15
	jbe	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movslq	%eax, %r14
	movl	%r14d, %r12d
	andl	$16777215, %r12d                ## imm = 0xFFFFFF
	movl	%r14d, %r15d
	sarl	$24, %r15d
	andl	$32767, %r15d                   ## imm = 0x7FFF
	movl	%ebx, %edi
	callq	_GENWQE_UID_OFFS
	movl	%eax, %r13d
	orl	%r12d, %r13d
	btq	$39, %r14
	jb	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$8, %r15d
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$3, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	___genwqe_readq
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-52(%rbp), %rdx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_set_reg_idx
	addl	$8, %r13d
	decl	%r15d
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	___genwqe_readq
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-52(%rbp), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_set_reg_idx
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_6
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_EXTENDED_ERROR_POINTER,4,2  ## @IO_EXTENDED_ERROR_POINTER
	.comm	_IO_EXTENDED_DIAG_SELECTOR,4,2  ## @IO_EXTENDED_DIAG_SELECTOR
	.comm	_IO_EXTENDED_DIAG_READ_MBX,4,2  ## @IO_EXTENDED_DIAG_READ_MBX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genwqe_ffdc_buff_read          ; -- Begin function genwqe_ffdc_buff_read
	.p2align	2
_genwqe_ffdc_buff_read:                 ; @genwqe_ffdc_buff_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #28]
	mov	x0, x1
	bl	_GENWQE_UID_OFFS
Lloh0:
	adrp	x8, _IO_EXTENDED_ERROR_POINTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IO_EXTENDED_ERROR_POINTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x22
	bl	___genwqe_readq
	sub	w8, w0, #1
	cmn	w8, #3
	b.hi	LBB0_2
; %bb.1:
	mov	x23, x0
	mov	x0, x21
	bl	_GENWQE_UID_OFFS
	orr	w23, w0, w23
	mov	x0, x22
	mov	x1, x23
	bl	___genwqe_readq
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w0, #1
	cmp	w8, #2
	b.hs	LBB0_11
LBB0_2:
	mov	w23, #0
Lloh3:
	adrp	x27, _IO_EXTENDED_DIAG_READ_MBX@GOTPAGE
Lloh4:
	ldr	x27, [x27, _IO_EXTENDED_DIAG_READ_MBX@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w23, #8
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x0, x21
	bl	_GENWQE_UID_OFFS
	mov	x24, x0
	mov	x0, x23
	bl	_IO_EXTENDED_DIAG_MAP
	orr	w1, w0, w24
	mov	x0, x22
	bl	___genwqe_readq
	add	w8, w0, #1
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	lsr	w9, w0, #24
	ubfx	w8, w0, #16, #8
	stp	w8, w9, [sp, #16]               ; 8-byte Folded Spill
	and	w8, w0, #0xffff
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	w23, [sp, #24]                  ; 4-byte Folded Spill
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w24, #1
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w24, w9
	mov	x24, x8
	ldr	w23, [sp, #24]                  ; 4-byte Folded Reload
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x0, x23
	mov	x1, x24
	bl	_GENWQE_EXTENDED_DIAG_SELECTOR
	mov	x25, x0
	mov	x0, x21
	bl	_GENWQE_UID_OFFS
Lloh5:
	adrp	x8, _IO_EXTENDED_DIAG_SELECTOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IO_EXTENDED_DIAG_SELECTOR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x22
	mov	x2, x25
	bl	___genwqe_writeq
	cmp	w24, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	csel	w26, w8, w9, eq
	cbz	w26, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w28, #0
	lsl	w23, w25, #16
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x21
	bl	_GENWQE_UID_OFFS
	ldr	w8, [x27]
	orr	w25, w8, w0
	mov	x0, x22
	mov	x1, x25
	bl	___genwqe_readq
	mov	x6, x0
	orr	w5, w28, w23
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	mov	x4, x25
	bl	_set_reg_idx
	add	w28, w28, #1
	cmp	w26, w28
	b.ne	LBB0_9
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w23, #8
	mov	x0, x22
	mov	x1, x23
	bl	___genwqe_readq
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w0, #1
	cmp	w8, #1
	b.ls	LBB0_2
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	sxtw	x25, w0
	and	w24, w0, #0xffffff
	asr	w8, w0, #24
	and	w26, w8, #0x7fff
	mov	x0, x21
	bl	_GENWQE_UID_OFFS
	orr	w24, w0, w24
	tbnz	x25, #39, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w26, #8
	b.lo	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsr	w25, w26, #3
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x24
	bl	___genwqe_readq
	mov	x6, x0
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	mov	x4, x24
	mov	w5, #0
	bl	_set_reg_idx
	add	w24, w24, #8
	subs	w25, w25, #1
	b.ne	LBB0_14
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w26, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w25, #0
LBB0_17:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x24
	bl	___genwqe_readq
	mov	x6, x0
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	mov	x4, x24
	mov	x5, x25
	bl	_set_reg_idx
	add	w25, w25, #1
	cmp	w26, w25
	b.ne	LBB0_17
	b	LBB0_10
LBB0_18:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_EXTENDED_ERROR_POINTER,4,2  ; @IO_EXTENDED_ERROR_POINTER
	.comm	_IO_EXTENDED_DIAG_SELECTOR,4,2  ; @IO_EXTENDED_DIAG_SELECTOR
	.comm	_IO_EXTENDED_DIAG_READ_MBX,4,2  ; @IO_EXTENDED_DIAG_READ_MBX
.subsections_via_symbols
