	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdm_ppc_store_registers
_bdm_ppc_store_registers:               ## @bdm_ppc_store_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	movq	_bdm_regmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	cmpl	$-1, (%rax,%rcx,4)
	movl	%edi, %r12d
	jne	LBB0_4
	jmp	LBB0_11
LBB0_2:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.3:
	decl	%r12d
	xorl	%edi, %edi
LBB0_4:
	movslq	%edi, %rbx
	incl	%r12d
	movq	_bdm_regmap@GOTPCREL(%rip), %r15
	movq	_current_gdbarch@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_deprecated_registers@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_BYTE
	addq	%rax, %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	_bdm_regmap@GOTPCREL(%rip), %r15
	movl	$4, %edx
	callq	_ocd_write_bdm_registers
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpl	%ebx, %r12d
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %r14d
	movl	(%r13), %edi
	callq	_gdbarch_tdep
	cmpl	(%rax), %ebx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	callq	_gdbarch_tdep
	cmpl	4(%rax), %ebx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_FP0_REGNUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_FPLAST_REGNUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jle	LBB0_10
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_FP0_REGNUM,4,2                 ## @FP0_REGNUM
	.comm	_FPLAST_REGNUM,4,2              ## @FPLAST_REGNUM
	.comm	_deprecated_registers,8,3       ## @deprecated_registers
	.no_dead_strip	_bdm_ppc_store_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_store_registers
_bdm_ppc_store_registers:               ; @bdm_ppc_store_registers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x21, _bdm_regmap@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bdm_regmap@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w9, [x8, w0, sxtw #2]
	mov	x8, x0
	cmn	w9, #1
	b.ne	LBB0_4
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	subs	w8, w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w0, #0
LBB0_4:
	sxtw	x19, w0
	add	w22, w8, #1
Lloh5:
	adrp	x23, _current_gdbarch@GOTPAGE
Lloh6:
	ldr	x23, [x23, _current_gdbarch@GOTPAGEOFF]
Lloh7:
	adrp	x24, _FP0_REGNUM@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FP0_REGNUM@GOTPAGEOFF]
Lloh9:
	adrp	x25, _FPLAST_REGNUM@GOTPAGE
Lloh10:
	ldr	x25, [x25, _FPLAST_REGNUM@GOTPAGEOFF]
Lloh11:
	adrp	x26, _deprecated_registers@GOTPAGE
Lloh12:
	ldr	x26, [x26, _deprecated_registers@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #1
	cmp	w22, w19
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w20, [x8, x19, lsl #2]
	ldr	w0, [x23]
	bl	_gdbarch_tdep
	ldr	w8, [x0]
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23]
	bl	_gdbarch_tdep
	ldr	w8, [x0, #4]
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x24]
	ldrsw	x9, [x25]
	cmp	x19, x8
	ccmp	x19, x9, #0, ge
	b.le	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [x26]
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_BYTE
	add	x1, x0, x27
	mov	x0, x20
	mov	w2, #4
	bl	_ocd_write_bdm_registers
	b	LBB0_5
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_FP0_REGNUM,4,2                 ; @FP0_REGNUM
	.comm	_FPLAST_REGNUM,4,2              ; @FPLAST_REGNUM
	.comm	_deprecated_registers,8,3       ; @deprecated_registers
	.no_dead_strip	_bdm_ppc_store_registers
.subsections_via_symbols
