	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uds_connect
_uds_connect:                           ## @uds_connect
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpl	$-1, %r12d
	setge	%dil
	callq	_PJDLOG_ASSERT
	movq	_UDS_SIDE_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_uds_common_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	-40(%rbp), %rsi
	movl	4(%rsi), %edi
	movl	$4, %edx
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-40(%rbp), %rdi
	callq	_uds_close
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UDS_SIDE_CLIENT,4,2            ## @UDS_SIDE_CLIENT
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_uds_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uds_connect
_uds_connect:                           ; @uds_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmn	w21, #2
	cset	w0, gt
	bl	_PJDLOG_ASSERT
Lloh0:
	adrp	x8, _UDS_SIDE_CLIENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UDS_SIDE_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x22
	bl	_uds_common_setup
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	cmp	x20, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x1, [sp, #8]
	ldr	w0, [x1, #4]
	mov	w2, #4
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	mov	w21, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x0, [sp, #8]
	bl	_uds_close
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UDS_SIDE_CLIENT,4,2            ; @UDS_SIDE_CLIENT
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_uds_connect
.subsections_via_symbols
