	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_trans_get_preferred        ## -- Begin function rds_trans_get_preferred
	.p2align	4, 0x90
_rds_trans_get_preferred:               ## @rds_trans_get_preferred
	.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	%edi, %r14d
	callq	_ntohl
	movl	%eax, %edi
	callq	_IN_LOOPBACK
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_rds_loop_transport@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_2:
	movq	_rds_trans_sem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	_RDS_TRANS_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.3:
	movq	_transports@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	callq	*(%r13)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_try_module_get
	testq	%rax, %rax
	je	LBB0_8
	jmp	LBB0_10
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movq	_rds_trans_sem@GOTPCREL(%rip), %rdi
	callq	_up_read
LBB0_11:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rds_loop_transport,16,3        ## @rds_loop_transport
	.comm	_rds_trans_sem,4,2              ## @rds_trans_sem
	.comm	_RDS_TRANS_COUNT,4,2            ## @RDS_TRANS_COUNT
	.comm	_transports,8,3                 ## @transports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_trans_get_preferred        ; -- Begin function rds_trans_get_preferred
	.p2align	2
_rds_trans_get_preferred:               ; @rds_trans_get_preferred
	.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	x19, x0
	bl	_ntohl
	bl	_IN_LOOPBACK
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _rds_loop_transport@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rds_loop_transport@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
Lloh2:
	adrp	x0, _rds_trans_sem@GOTPAGE
Lloh3:
	ldr	x0, [x0, _rds_trans_sem@GOTPAGEOFF]
	bl	_down_read
Lloh4:
	adrp	x21, _RDS_TRANS_COUNT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _RDS_TRANS_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x22, #0
Lloh6:
	adrp	x23, _transports@GOTPAGE
Lloh7:
	ldr	x23, [x23, _transports@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	w8, [x21]
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x20, [x8, x22, lsl #3]
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_try_module_get
	cbz	x0, LBB0_4
	b	LBB0_10
LBB0_9:
	mov	x20, #0
LBB0_10:
Lloh8:
	adrp	x0, _rds_trans_sem@GOTPAGE
Lloh9:
	ldr	x0, [x0, _rds_trans_sem@GOTPAGEOFF]
	bl	_up_read
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_rds_loop_transport,16,3        ; @rds_loop_transport
	.comm	_rds_trans_sem,4,2              ; @rds_trans_sem
	.comm	_RDS_TRANS_COUNT,4,2            ; @RDS_TRANS_COUNT
	.comm	_transports,8,3                 ; @transports
.subsections_via_symbols
