	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_bind                       ## -- Begin function sys_bind
	.p2align	4, 0x90
_sys_bind:                              ## @sys_bind
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ecx
	movl	%esi, %r14d
	movl	%edi, %ebx
	movl	%edx, -20(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_STRACE
	movl	%ebx, %edi
	callq	_sock_getfd
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rax, %rcx
	callq	_sockaddr_read_bind
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	16(%rbx), %edi
	movl	-20(%rbp), %edx
	leaq	-24(%rbp), %rsi
	callq	_bind
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	__EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	movq	(%rbx), %rdi
	callq	_inode_release_if_exist
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_unix_abstract_release
LBB0_6:
	xorl	%eax, %eax
	callq	_errno_map
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bind(%d, 0x%x, %d)"

	.comm	__EBADF,4,2                     ## @_EBADF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_bind                       ; -- Begin function sys_bind
	.p2align	2
_sys_bind:                              ; @sys_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x2
	mov	x20, x1
	mov	x19, x0
	str	w2, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_STRACE
	mov	x0, x19
	bl	_sock_getfd
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	mov	x3, x19
	bl	_sockaddr_read_bind
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	w2, [sp, #12]
	add	x1, sp, #8
	bl	_bind
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, __EBADF@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EBADF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19]
	bl	_inode_release_if_exist
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_unix_abstract_release
LBB0_7:
	bl	_errno_map
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bind(%d, 0x%x, %d)"

	.comm	__EBADF,4,2                     ; @_EBADF
.subsections_via_symbols
