	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base_sock_bind
_base_sock_bind:                        ## @base_sock_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$15, %edx
	jbe	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movq	_AF_ISDN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_lock_sock
	movq	%r14, %rdi
	callq	__pms
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_EALREADY@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rbx), %edi
	callq	_get_mdevice
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	__pms
	movq	%rbx, (%rax)
	movq	%r14, %rdi
	callq	__pms
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movq	_MISDN_BOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_release_sock
	jmp	LBB0_11
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_ISDN,8,3                    ## @AF_ISDN
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MISDN_BOUND,4,2                ## @MISDN_BOUND
	.no_dead_strip	_base_sock_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base_sock_bind
_base_sock_bind:                        ; @base_sock_bind
	.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
	cmp	w2, #15
	b.ls	LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_ISDN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_ISDN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x19, [x0]
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x19
	bl	__pms
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _EALREADY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20, #8]
	bl	_get_mdevice
	mov	x20, x0
	mov	x0, x19
	bl	__pms
	str	x20, [x0]
	mov	x0, x19
	bl	__pms
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.9:
	mov	w20, #0
Lloh8:
	adrp	x8, _MISDN_BOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MISDN_BOUND@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
	mov	x0, x19
	bl	_release_sock
	b	LBB0_7
LBB0_11:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_ISDN,8,3                    ; @AF_ISDN
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MISDN_BOUND,4,2                ; @MISDN_BOUND
	.no_dead_strip	_base_sock_bind
.subsections_via_symbols
