	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_mc_find_dev
_ip6_mc_find_dev:                       ## @ip6_mc_find_dev
	.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
	testl	%edx, %edx
	je	LBB0_1
## %bb.3:
	movl	%edx, %esi
	callq	_dev_get_by_index
	movq	%rax, %r14
	testq	%r14, %r14
	jne	LBB0_5
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rt6_lookup
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r15
	movq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_dev_hold
	movq	%r15, %rdi
	callq	_dst_release
	testq	%r14, %r14
	je	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_in6_dev_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_read_lock_bh
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_read_unlock_bh
	movq	%rbx, %rdi
	callq	_in6_dev_put
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_put
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ip6_mc_find_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_mc_find_dev
_ip6_mc_find_dev:                       ; @ip6_mc_find_dev
	.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
	cbz	w2, LBB0_2
; %bb.1:
	mov	x1, x2
	bl	_dev_get_by_index
	mov	x19, x0
	cbnz	x19, LBB0_4
	b	LBB0_8
LBB0_2:
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_rt6_lookup
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x19, [x20, #8]
	mov	x0, x19
	bl	_dev_hold
	mov	x0, x20
	bl	_dst_release
	cbz	x19, LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_in6_dev_get
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	bl	_read_lock_bh
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_read_unlock_bh
	mov	x0, x20
	bl	_in6_dev_put
LBB0_7:
	mov	x0, x19
	bl	_dev_put
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ip6_mc_find_dev
.subsections_via_symbols
