	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function div_bind
_div_bind:                              ## @div_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_sotoinpcb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%r14), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_V_divcbinfo@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_INP_INFO_WLOCK
	movq	%rbx, %rdi
	callq	_INP_WLOCK
	movq	%r12, %rdi
	callq	_INP_HASH_WLOCK
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_in_pcbbind
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_INP_HASH_WUNLOCK
	movq	%rbx, %rdi
	callq	_INP_WUNLOCK
	movq	%r12, %rdi
	callq	_INP_INFO_WUNLOCK
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"div_bind: inp == NULL"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_V_divcbinfo,4,2                ## @V_divcbinfo
	.no_dead_strip	_div_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function div_bind
_div_bind:                              ; @div_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	bl	_sotoinpcb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _AF_INET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh8:
	adrp	x22, _V_divcbinfo@GOTPAGE
Lloh9:
	ldr	x22, [x22, _V_divcbinfo@GOTPAGEOFF]
	mov	x0, x22
	bl	_INP_INFO_WLOCK
	mov	x0, x19
	bl	_INP_WLOCK
	mov	x0, x22
	bl	_INP_HASH_WLOCK
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_in_pcbbind
	mov	x20, x0
	mov	x0, x22
	bl	_INP_HASH_WUNLOCK
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	x0, x22
	bl	_INP_INFO_WUNLOCK
	mov	x0, x20
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"div_bind: inp == NULL"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_V_divcbinfo,4,2                ; @V_divcbinfo
	.no_dead_strip	_div_bind
.subsections_via_symbols
