	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdm_ppc_fetch_registers
_bdm_ppc_fetch_registers:               ## @bdm_ppc_fetch_registers
	.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	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FPLAST_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FP0_REGNUM@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	subl	%ebx, %edx
	jl	LBB0_2
## %bb.1:
	incl	%edx
	leaq	-80(%rbp), %rdi
	movl	$255, %esi
	callq	_memset
LBB0_2:
	movb	$-1, -81(%rbp)
	cmpl	$-1, %r13d
	je	LBB0_6
## %bb.3:
	movq	_bdm_regmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	%r14d, %r12d
	cmpl	$-1, %r14d
	jne	LBB0_8
	jmp	LBB0_4
LBB0_6:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BDM_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ecx, %r13d
	decl	%r13d
	je	LBB0_7
## %bb.13:
	decl	%ebx
	xorl	%r14d, %r14d
	leaq	-100(%rbp), %rdx
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	callq	_ocd_read_bdm_registers
	movq	%rax, %r15
	movq	_FPLAST_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	addl	$-2, %r12d
	leaq	-96(%rbp), %rdx
	movl	%r12d, %esi
	callq	_ocd_read_bdm_registers
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_strcat
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	leaq	-81(%rbp), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movl	-100(%rbp), %eax
	movl	-96(%rbp), %ecx
	addl	%ecx, %eax
	addl	$33, %eax
	movl	%eax, -88(%rbp)
	movl	$0, %eax
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_14
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	decl	%r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
LBB0_8:
	movq	_current_gdbarch@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_gdbarch_tdep
	cmpl	(%rax), %r13d
	je	LBB0_4
## %bb.9:
	movl	(%rbx), %edi
	callq	_gdbarch_tdep
	cmpl	4(%rax), %r13d
	je	LBB0_4
## %bb.10:
	cmpl	(%r15), %r13d
	jl	LBB0_12
## %bb.11:
	movq	_FPLAST_REGNUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_12
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.5:
	movl	%r13d, %edi
	xorl	%esi, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_supply_register                ## TAILCALL
LBB0_12:
	leaq	-88(%rbp), %rdx
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_ocd_read_bdm_registers
	movq	%rax, %r15
	movl	%r13d, %eax
LBB0_14:
	movslq	%eax, %rbx
	incl	%r13d
	movq	_bdm_regmap@GOTPCREL(%rip), %r12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%esi, %esi
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_supply_register
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	cmpl	%ebx, %r13d
	je	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	subl	%r14d, %eax
	movl	-88(%rbp), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	cmpl	%edx, %eax
	jge	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	shll	$2, %eax
	movslq	%eax, %rsi
	addq	%r15, %rsi
	jmp	LBB0_19
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FPLAST_REGNUM,4,2              ## @FPLAST_REGNUM
	.comm	_FP0_REGNUM,4,2                 ## @FP0_REGNUM
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_BDM_NUM_REGS,4,2               ## @BDM_NUM_REGS
	.comm	_bdm_regmap,8,3                 ## @bdm_regmap
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.no_dead_strip	_bdm_ppc_fetch_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdm_ppc_fetch_registers
_bdm_ppc_fetch_registers:               ; @bdm_ppc_fetch_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _FPLAST_REGNUM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FPLAST_REGNUM@GOTPAGEOFF]
	str	x8, [sp, #56]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _FP0_REGNUM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FP0_REGNUM@GOTPAGEOFF]
	ldr	w21, [x23]
	subs	w8, w8, w21
	b.lt	LBB0_2
; %bb.1:
	add	w2, w8, #1
	add	x0, sp, #24
	mov	w1, #255
	bl	_memset
LBB0_2:
	mov	w8, #255
	strb	w8, [sp, #23]
	cmn	w19, #1
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _bdm_regmap@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bdm_regmap@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w20, [x8, w19, sxtw #2]
	mov	x21, x20
	cmn	w20, #1
	b.ne	LBB0_8
	b	LBB0_19
LBB0_4:
Lloh10:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _BDM_NUM_REGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BDM_NUM_REGS@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	sub	w19, w20, #1
	cbz	w19, LBB0_7
; %bb.5:
	sub	w1, w21, #1
	add	x2, sp, #12
	mov	w0, #0
	bl	_ocd_read_bdm_registers
	mov	x21, x0
	ldr	w8, [x22]
	add	w0, w8, #1
	sub	w1, w24, #2
	add	x2, sp, #8
	bl	_ocd_read_bdm_registers
	mov	x1, x0
	add	x0, sp, #24
	bl	_strcat
	add	x1, sp, #24
	mov	x0, x21
	bl	_strcat
	add	x1, sp, #23
	bl	_strcat
	ldp	w9, w8, [sp, #8]
	add	w8, w8, w9
	add	w8, w8, #33
	str	w8, [sp, #16]
	cmp	w20, #1
	b.lt	LBB0_21
; %bb.6:
	mov	w20, #0
	mov	w22, #0
	b	LBB0_12
LBB0_7:
	mov	w20, #0
	sub	w21, w24, #1
LBB0_8:
Lloh16:
	adrp	x24, _current_gdbarch@GOTPAGE
Lloh17:
	ldr	x24, [x24, _current_gdbarch@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_gdbarch_tdep
	ldr	w8, [x0]
	cmp	w19, w8
	b.eq	LBB0_19
; %bb.9:
	ldr	w0, [x24]
	bl	_gdbarch_tdep
	ldr	w8, [x0, #4]
	cmp	w19, w8
	b.eq	LBB0_19
; %bb.10:
	ldr	w8, [x23]
	ldr	w9, [x22]
	cmp	w19, w8
	ccmp	w19, w9, #0, ge
	b.le	LBB0_19
; %bb.11:
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x21
	bl	_ocd_read_bdm_registers
	mov	x21, x0
	mov	x22, x19
LBB0_12:
	add	w19, w19, #1
	sbfiz	x23, x22, #2, #32
Lloh18:
	adrp	x24, _bdm_regmap@GOTPAGE
Lloh19:
	ldr	x24, [x24, _bdm_regmap@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, #0
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	bl	_supply_register
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w22, w22, #1
	add	x23, x23, #4
	cmp	w19, w22
	b.eq	LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8, x23]
	cmn	w8, #1
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w8, w8, w20
	ldr	w9, [sp, #16]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w8, w9, asr #2
	b.ge	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	lsl	w8, w8, #2
	add	x1, x21, w8, sxtw
	b	LBB0_14
LBB0_19:
	ldr	x8, [sp, #56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.20:
	mov	x0, x19
	mov	x1, #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
	add	sp, sp, #128
	b	_supply_register
LBB0_21:
	ldr	x8, [sp, #56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	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
	add	sp, sp, #128
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_FPLAST_REGNUM,4,2              ; @FPLAST_REGNUM
	.comm	_FP0_REGNUM,4,2                 ; @FP0_REGNUM
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_BDM_NUM_REGS,4,2               ; @BDM_NUM_REGS
	.comm	_bdm_regmap,8,3                 ; @bdm_regmap
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.no_dead_strip	_bdm_ppc_fetch_registers
.subsections_via_symbols
