	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_choose_master_bus
_pl08x_choose_master_bus:               ## @pl08x_choose_master_bus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_1:
	movq	(%rsi), %rdi
	leaq	8(%rsi), %rax
	cmpq	8(%rsi), %rdi
	jge	LBB0_3
LBB0_2:
	movq	%rax, (%rdx)
	jmp	LBB0_8
LBB0_3:
	movq	%rsi, (%rdx)
	jmp	LBB0_9
LBB0_4:
	movq	_PL080_CONTROL_DST_INCR@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_PL080_CONTROL_SRC_INCR@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	jne	LBB0_1
## %bb.6:
	leaq	8(%rsi), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rsi, (%rdx)
	addq	$8, %rsi
LBB0_8:
	movq	%rsi, %rax
LBB0_9:
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL080_CONTROL_DST_INCR,4,2     ## @PL080_CONTROL_DST_INCR
	.comm	_PL080_CONTROL_SRC_INCR,4,2     ## @PL080_CONTROL_SRC_INCR
	.no_dead_strip	_pl08x_choose_master_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_choose_master_bus
_pl08x_choose_master_bus:               ; @pl08x_choose_master_bus
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
LBB0_1:
	ldr	x9, [x1]
	mov	x8, x1
	ldr	x10, [x8, #8]!
	cmp	x9, x10
	b.ge	LBB0_3
LBB0_2:
	str	x8, [x2]
	str	x1, [x3]
	ret
LBB0_3:
	str	x1, [x2]
	str	x8, [x3]
	ret
LBB0_4:
Lloh0:
	adrp	x8, _PL080_CONTROL_DST_INCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PL080_CONTROL_DST_INCR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _PL080_CONTROL_SRC_INCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PL080_CONTROL_SRC_INCR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w4
	b.ne	LBB0_1
; %bb.6:
	add	x8, x1, #8
	b	LBB0_2
LBB0_7:
	str	x1, [x2]
	add	x8, x1, #8
	str	x8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PL080_CONTROL_DST_INCR,4,2     ; @PL080_CONTROL_DST_INCR
	.comm	_PL080_CONTROL_SRC_INCR,4,2     ; @PL080_CONTROL_SRC_INCR
	.no_dead_strip	_pl08x_choose_master_bus
.subsections_via_symbols
