	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_do_bind
_packet_do_bind:                        ## @packet_do_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	%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
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_pkt_sk
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_lock_sock
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	cmpq	%r13, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	%r12, 16(%rbx)
	je	LBB0_10
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	addq	$8, %r14
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	___sock_put
	movl	$0, (%rbx)
	movq	$0, 32(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_dev_remove_pack
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock
LBB0_4:
	movq	%r13, 32(%rbx)
	movq	%r13, 8(%rbx)
	movq	%r12, 16(%rbx)
	testq	%r12, %r12
	je	LBB0_11
## %bb.5:
	movl	4(%r12), %eax
	movl	%eax, 24(%rbx)
	testq	%r13, %r13
	movq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.6:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.8:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	*(%r15)
	jmp	LBB0_10
LBB0_11:
	movl	$0, 24(%rbx)
	testq	%r13, %r13
	movq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
LBB0_7:
	callq	_dev_add_pack
	movq	%r15, %rdi
	callq	_sock_hold
	movl	$1, (%rbx)
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_release_sock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.no_dead_strip	_packet_do_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_do_bind
_packet_do_bind:                        ; @packet_do_bind
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_pkt_sk
	mov	x21, x0
	mov	x0, x19
	bl	_lock_sock
	add	x20, x21, #4
	mov	x0, x20
	bl	_spin_lock
	mov	x24, x21
	ldr	x8, [x24, #8]!
	ldr	x9, [x21, #16]
	cmp	x8, x22
	ccmp	x9, x23, #0, eq
	b.eq	LBB0_10
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	___sock_put
	str	wzr, [x21]
	str	xzr, [x21, #32]
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x24
	bl	_dev_remove_pack
	mov	x0, x20
	bl	_spin_lock
LBB0_3:
	str	x22, [x21, #32]
	stp	x22, x23, [x21, #8]
	cbz	x23, LBB0_8
; %bb.4:
	ldr	w8, [x23, #4]
	str	w8, [x21, #24]
	cbz	x22, LBB0_10
; %bb.5:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.6:
Lloh3:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	b	LBB0_10
LBB0_8:
	str	wzr, [x21, #24]
	cbz	x22, LBB0_10
LBB0_9:
	mov	x0, x24
	bl	_dev_add_pack
	mov	x0, x19
	bl	_sock_hold
	mov	w8, #1
	str	w8, [x21]
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_release_sock
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.no_dead_strip	_packet_do_bind
.subsections_via_symbols
