	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iucv_sock_connect
_iucv_sock_connect:                     ## @iucv_sock_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	%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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_iucv_sk
	cmpl	$8, %ebx
	jb	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	_AF_IUCV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_2
## %bb.4:
	movq	(%r12), %rax
	movq	_IUCV_OPEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.5:
	movq	_IUCV_BOUND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
LBB0_7:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.8:
	movq	(%r14), %rax
	movq	_AF_IUCV_TRANS_HIPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_6:
	movq	_EBADFD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	8(%r12), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
	jmp	LBB0_14
LBB0_9:
	movq	8(%r12), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, %rdi
	callq	_iucv_sock_autobind
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_25
LBB0_14:
	movq	%r12, %rdi
	callq	_lock_sock
	movl	12(%r14), %edi
	movl	4(%r13), %esi
	movl	$8, %edx
	callq	_memcpy
	movl	8(%r14), %edi
	movl	(%r13), %esi
	movl	$8, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	_AF_IUCV_TRANS_HIPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_AF_IUCV_FLAG_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_iucv_send_ctrl
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_afiucv_path_connect
LBB0_17:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movq	(%r12), %rax
	movq	_IUCV_CONNECTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ebx, %ebx
	movl	$0, %r15d
	cmpq	%rsi, %rax
	je	LBB0_20
## %bb.19:
	movq	_IUCV_DISCONN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_iucv_sock_in_state
	movl	%eax, %r15d
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	andl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_sndtimeo
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_iucv_sock_wait
	movl	%eax, %r15d
	movq	(%r12), %rax
LBB0_20:
	movq	_IUCV_DISCONN@GOTPCREL(%rip), %rcx
	movq	_IUCV_CLOSED@GOTPCREL(%rip), %rdx
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	subl	(%rsi), %edi
	cmpq	(%rdx), %rax
	cmovel	%edi, %r15d
	cmpq	(%rcx), %rax
	cmovel	%edi, %r15d
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.21:
	movq	(%r14), %rax
	movq	_AF_IUCV_TRANS_IUCV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iucv_sever_path
LBB0_23:
	movl	%r15d, %ebx
LBB0_24:
	movq	%r12, %rdi
	callq	_release_sock
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_IUCV,8,3                    ## @AF_IUCV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IUCV_OPEN,8,3                  ## @IUCV_OPEN
	.comm	_IUCV_BOUND,8,3                 ## @IUCV_BOUND
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_AF_IUCV_TRANS_HIPER,8,3        ## @AF_IUCV_TRANS_HIPER
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_AF_IUCV_FLAG_SYN,4,2           ## @AF_IUCV_FLAG_SYN
	.comm	_IUCV_CONNECTED,8,3             ## @IUCV_CONNECTED
	.comm	_IUCV_DISCONN,8,3               ## @IUCV_DISCONN
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_IUCV_CLOSED,8,3                ## @IUCV_CLOSED
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_AF_IUCV_TRANS_IUCV,8,3         ## @AF_IUCV_TRANS_IUCV
	.no_dead_strip	_iucv_sock_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iucv_sock_connect
_iucv_sock_connect:                     ; @iucv_sock_connect
	.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, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_iucv_sk
	cmp	w24, #8
	b.lo	LBB0_11
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _AF_IUCV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_IUCV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IUCV_OPEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IUCV_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IUCV_BOUND@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IUCV_BOUND@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	x20, x0
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _AF_IUCV_TRANS_HIPER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AF_IUCV_TRANS_HIPER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_5:
Lloh12:
	adrp	x8, _EBADFD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _SOCK_SEQPACKET@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_lock_sock
	ldr	w0, [x20, #12]
	ldr	w1, [x22, #4]
	mov	w2, #8
	bl	_memcpy
	ldr	w0, [x20, #8]
	ldr	w1, [x22]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _AF_IUCV_TRANS_HIPER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AF_IUCV_TRANS_HIPER@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
Lloh23:
	adrp	x8, _AF_IUCV_FLAG_SYN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AF_IUCV_FLAG_SYN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iucv_send_ctrl
	mov	x24, x0
	cbnz	w0, LBB0_21
	b	LBB0_15
LBB0_9:
	ldr	x8, [x19, #8]
Lloh26:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
Lloh29:
	adrp	x10, _SOCK_SEQPACKET@GOTPAGE
Lloh30:
	ldr	x10, [x10, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_iucv_sock_autobind
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_13
	b	LBB0_7
LBB0_11:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_13:
	mov	x0, x24
	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
LBB0_14:
	mov	x0, x23
	mov	x1, x22
	bl	_afiucv_path_connect
	mov	x24, x0
	cbnz	w0, LBB0_21
LBB0_15:
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _IUCV_CONNECTED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IUCV_CONNECTED@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x9]
Lloh37:
	adrp	x23, _IUCV_DISCONN@GOTPAGE
Lloh38:
	ldr	x23, [x23, _IUCV_DISCONN@GOTPAGEOFF]
	cmp	x8, x1
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	ldr	x2, [x23]
	mov	x0, x19
	bl	_iucv_sock_in_state
	mov	x22, x0
Lloh39:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	and	w1, w8, w21
	mov	x0, x19
	bl	_sock_sndtimeo
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_iucv_sock_wait
	ldr	x8, [x19]
LBB0_18:
	ldr	x9, [x23]
Lloh42:
	adrp	x10, _IUCV_CLOSED@GOTPAGE
Lloh43:
	ldr	x10, [x10, _IUCV_CLOSED@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh45:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	csneg	w24, w0, w8, ne
	cbz	w24, LBB0_21
; %bb.19:
	ldr	x8, [x20]
Lloh48:
	adrp	x9, _AF_IUCV_TRANS_IUCV@GOTPAGE
Lloh49:
	ldr	x9, [x9, _AF_IUCV_TRANS_IUCV@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	bl	_iucv_sever_path
LBB0_21:
	mov	x0, x19
	bl	_release_sock
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_IUCV,8,3                    ; @AF_IUCV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IUCV_OPEN,8,3                  ; @IUCV_OPEN
	.comm	_IUCV_BOUND,8,3                 ; @IUCV_BOUND
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_AF_IUCV_TRANS_HIPER,8,3        ; @AF_IUCV_TRANS_HIPER
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_AF_IUCV_FLAG_SYN,4,2           ; @AF_IUCV_FLAG_SYN
	.comm	_IUCV_CONNECTED,8,3             ; @IUCV_CONNECTED
	.comm	_IUCV_DISCONN,8,3               ; @IUCV_DISCONN
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_IUCV_CLOSED,8,3                ; @IUCV_CLOSED
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_AF_IUCV_TRANS_IUCV,8,3         ; @AF_IUCV_TRANS_IUCV
	.no_dead_strip	_iucv_sock_connect
.subsections_via_symbols
