	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_convert_to_ai
_ucma_convert_to_ai:                    ## @ucma_convert_to_ai
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	(%r14), %eax
	movq	_RAI_PASSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 44(%rbx)
LBB0_2:
	movq	_RAI_NUMERICHOST@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 44(%rbx)
LBB0_4:
	movq	8(%r14), %rdx
	movq	_AF_IB@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_6
## %bb.5:
	movq	%rdx, (%rbx)
LBB0_6:
	movl	$-132, %edx
	addl	16(%r14), %edx
	cmpl	$4, %edx
	ja	LBB0_8
## %bb.7:
	movslq	%edx, %rdx
	leaq	l_switch.table.ucma_convert_to_ai(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movl	(%rdx), %edx
	movl	%edx, 40(%rbx)
LBB0_8:
	movl	20(%r14), %esi
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_14
## %bb.9:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rdx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_12:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rdx
LBB0_13:
	movq	(%rdx), %rdx
	movq	%rdx, 32(%rbx)
LBB0_14:
	xorl	%edx, %edx
	testl	%eax, %ecx
	setne	%dl
	movq	28(%r14,%rdx,8), %rax
	movq	%rax, 20(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	40(%rbx), %esi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	je	LBB0_13
## %bb.11:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %esi
	je	LBB0_12
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_RAI_PASSIVE,4,2                ## @RAI_PASSIVE
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.comm	_RAI_NUMERICHOST,4,2            ## @RAI_NUMERICHOST
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_AF_IB,8,3                      ## @AF_IB
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.no_dead_strip	_ucma_convert_to_ai
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ucma_convert_to_ai
l_switch.table.ucma_convert_to_ai:
	.quad	_SOCK_STREAM
	.quad	_SOCK_STREAM
	.quad	_SOCK_DGRAM
	.quad	_SOCK_STREAM
	.quad	_SOCK_STREAM

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_convert_to_ai
_ucma_convert_to_ai:                    ; @ucma_convert_to_ai
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w9, [x20]
Lloh0:
	adrp	x8, _RAI_PASSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAI_PASSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, _AI_PASSIVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AI_PASSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	str	w10, [x19, #44]
LBB0_2:
Lloh6:
	adrp	x10, _RAI_NUMERICHOST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RAI_NUMERICHOST@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x19, #44]
	orr	w9, w10, w9
	str	w9, [x19, #44]
LBB0_4:
	ldr	x9, [x20, #8]
Lloh12:
	adrp	x10, _AF_IB@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AF_IB@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.5:
	str	x9, [x19]
LBB0_6:
	ldr	w9, [x20, #16]
	sub	w9, w9, #132
	cmp	w9, #4
	b.hi	LBB0_8
; %bb.7:
Lloh15:
	adrp	x10, l_switch.table.ucma_convert_to_ai@PAGE
Lloh16:
	add	x10, x10, l_switch.table.ucma_convert_to_ai@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w9, [x9]
	str	w9, [x19, #40]
LBB0_8:
	ldr	w9, [x20, #20]
	sub	w10, w9, #128
	cmp	w10, #3
	b.hi	LBB0_12
; %bb.9:
Lloh17:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh19:
	adrp	x11, lJTI0_0@PAGE
Lloh20:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_10
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_10:
Lloh21:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	str	x9, [x19, #32]
LBB0_12:
	cmp	w8, #0
	mov	w8, #40
	mov	w9, #32
	csel	x8, x9, x8, eq
	mov	w9, #36
	mov	w10, #28
	csel	x9, x10, x9, eq
	ldr	w9, [x20, x9]
	ldr	w8, [x20, x8]
	stp	w9, w8, [x19, #20]
	ldr	w8, [x20, #24]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w9, [x19, #40]
Lloh23:
	adrp	x10, _SOCK_STREAM@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SOCK_STREAM@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.14:
Lloh26:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
Lloh28:
	adrp	x10, _SOCK_DGRAM@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SOCK_DGRAM@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_10
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
                                        ; -- End function
	.comm	_RAI_PASSIVE,4,2                ; @RAI_PASSIVE
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.comm	_RAI_NUMERICHOST,4,2            ; @RAI_NUMERICHOST
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_AF_IB,8,3                      ; @AF_IB
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.no_dead_strip	_ucma_convert_to_ai
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ucma_convert_to_ai
l_switch.table.ucma_convert_to_ai:
	.quad	_SOCK_STREAM
	.quad	_SOCK_STREAM
	.quad	_SOCK_DGRAM
	.quad	_SOCK_STREAM
	.quad	_SOCK_STREAM

.subsections_via_symbols
