	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsb_set_rta
_rsb_set_rta:                           ## @rsb_set_rta
	.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
	movl	%esi, %r12d
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_RSB_ASSERT_LOCKED
	movq	_rsb_rtamap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	cmpl	%r12d, 8(%rax)
	je	LBB0_5
## %bb.2:
	addq	$24, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%rax), %rcx
	cmpl	%r12d, (%rax)
	movq	%rcx, %rax
	jne	LBB0_3
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	_RSB_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_RSB_READ
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_RSB_WRITE
	movq	_DAR_DA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_RSB_DAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DAR_RTA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_RSB_WRITE
	movq	_RSB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMD_SRTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_RSB_WRITE
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rsb_start                      ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rsb_rtamap,8,3                 ## @rsb_rtamap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTA not known for address %#x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_RSB_INTS,4,2                   ## @RSB_INTS
	.comm	_RSB_DAR,4,2                    ## @RSB_DAR
	.comm	_DAR_DA_SHIFT,4,2               ## @DAR_DA_SHIFT
	.comm	_DAR_RTA_SHIFT,4,2              ## @DAR_RTA_SHIFT
	.comm	_RSB_CMD,4,2                    ## @RSB_CMD
	.comm	_CMD_SRTA,4,2                   ## @CMD_SRTA
	.no_dead_strip	_rsb_set_rta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsb_set_rta
_rsb_set_rta:                           ; @rsb_set_rta
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	bl	_RSB_ASSERT_LOCKED
Lloh0:
	adrp	x8, _rsb_rtamap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rsb_rtamap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x23, [x8]
	cbz	x23, LBB0_7
; %bb.1:
	ldr	w9, [x8, #8]
	cmp	w9, w21
	b.eq	LBB0_5
; %bb.2:
	add	x8, x8, #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x23, [x8, #-8]
	cbz	x23, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8], #16
	cmp	w9, w21
	b.ne	LBB0_3
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _RSB_INTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSB_INTS@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_RSB_READ
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_RSB_WRITE
Lloh6:
	adrp	x8, _RSB_DAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSB_DAR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DAR_DA_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DAR_DA_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w21, w8
Lloh12:
	adrp	x9, _DAR_RTA_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DAR_RTA_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w2, w9, w8
	mov	x0, x20
	bl	_RSB_WRITE
Lloh15:
	adrp	x8, _RSB_CMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RSB_CMD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _CMD_SRTA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMD_SRTA@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_RSB_WRITE
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rsb_start
LBB0_7:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_device_printf
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_rsb_rtamap,8,3                 ; @rsb_rtamap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTA not known for address %#x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_RSB_INTS,4,2                   ; @RSB_INTS
	.comm	_RSB_DAR,4,2                    ; @RSB_DAR
	.comm	_DAR_DA_SHIFT,4,2               ; @DAR_DA_SHIFT
	.comm	_DAR_RTA_SHIFT,4,2              ; @DAR_RTA_SHIFT
	.comm	_RSB_CMD,4,2                    ; @RSB_CMD
	.comm	_CMD_SRTA,4,2                   ; @CMD_SRTA
	.no_dead_strip	_rsb_set_rta
.subsections_via_symbols
