	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function div_attach
_div_attach:                            ## @div_attach
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_sotoinpcb
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_PRIV_NETINET_DIVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_priv_check
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:
	movq	_div_sendspace@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_div_recvspace@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_soreserve
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_V_divcbinfo@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_INP_INFO_WLOCK
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_in_pcballoc
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	_V_divcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	jmp	LBB0_6
LBB0_5:
	movq	(%r15), %rbx
	movq	_V_divcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	movl	%r14d, (%rbx)
	movq	_INP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_INP_HDRINCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_INP_WUNLOCK
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"div_attach: inp != NULL"

	.comm	_PRIV_NETINET_DIVERT,4,2        ## @PRIV_NETINET_DIVERT
	.comm	_div_sendspace,4,2              ## @div_sendspace
	.comm	_div_recvspace,4,2              ## @div_recvspace
	.comm	_V_divcbinfo,4,2                ## @V_divcbinfo
	.comm	_INP_IPV4,4,2                   ## @INP_IPV4
	.comm	_INP_HDRINCL,4,2                ## @INP_HDRINCL
	.no_dead_strip	_div_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function div_attach
_div_attach:                            ; @div_attach
	.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	x19, x1
	mov	x20, x0
	bl	_sotoinpcb
	cmp	x0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	cbz	x21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PRIV_NETINET_DIVERT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PRIV_NETINET_DIVERT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_priv_check
	mov	x21, x0
	cbnz	w0, LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _div_sendspace@GOTPAGE
Lloh6:
	ldr	x8, [x8, _div_sendspace@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _div_recvspace@GOTPAGE
Lloh9:
	ldr	x8, [x8, _div_recvspace@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_soreserve
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
Lloh11:
	adrp	x21, _V_divcbinfo@GOTPAGE
Lloh12:
	ldr	x21, [x21, _V_divcbinfo@GOTPAGEOFF]
	mov	x0, x21
	bl	_INP_INFO_WLOCK
	mov	x0, x20
	mov	x1, x21
	bl	_in_pcballoc
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x0, _V_divcbinfo@GOTPAGE
Lloh14:
	ldr	x0, [x0, _V_divcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
	b	LBB0_6
LBB0_5:
	ldr	x20, [x20]
Lloh15:
	adrp	x0, _V_divcbinfo@GOTPAGE
Lloh16:
	ldr	x0, [x0, _V_divcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
	str	w19, [x20]
Lloh17:
	adrp	x8, _INP_IPV4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INP_IPV4@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	w10, w9, [x20, #4]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _INP_HDRINCL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _INP_HDRINCL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w9, w8, [x20, #4]
	mov	x0, x20
	bl	_INP_WUNLOCK
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"div_attach: inp != NULL"

	.comm	_PRIV_NETINET_DIVERT,4,2        ; @PRIV_NETINET_DIVERT
	.comm	_div_sendspace,4,2              ; @div_sendspace
	.comm	_div_recvspace,4,2              ; @div_recvspace
	.comm	_V_divcbinfo,4,2                ; @V_divcbinfo
	.comm	_INP_IPV4,4,2                   ; @INP_IPV4
	.comm	_INP_HDRINCL,4,2                ; @INP_HDRINCL
	.no_dead_strip	_div_attach
.subsections_via_symbols
