	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_clone_create
_iflib_clone_create:                    ## @iflib_clone_create
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_ifc_name
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	%r15d, -72(%rbp)
	movq	%rax, -80(%rbp)
	movq	_iflib_pseudodev@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_Giant@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	_root_bus@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_device_add_child
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_mtx_unlock
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_MPASS
LBB0_2:
	movq	%r13, %rdi
	callq	_iflib_ip_lookup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movl	4(%rax), %edi
	movl	%r14d, %esi
	callq	_devclass_get_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_bus_generic_print_child
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_PSEUDO_LOCK
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_device_add_child
	movq	%rax, %rbx
	movq	_iflib_pseudodriver@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_device_set_driver
	xorl	%eax, %eax
	callq	_PSEUDO_UNLOCK
	movq	%rbx, %rdi
	callq	_device_quiet
	movq	%rbx, %rdi
	callq	_device_attach
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_MPASS
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_MPASS
	movl	4(%r12), %edi
	movl	%r14d, %esi
	callq	_devclass_get_device
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_MPASS
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_iflib_pseudo_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movq	_Giant@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	_iflib_pseudodev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_device_delete_child
	movq	%r15, %rdi
	callq	_mtx_unlock
	movl	%r14d, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_device_set_softc
LBB0_9:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iflib_pseudodev,8,3            ## @iflib_pseudodev
	.comm	_Giant,4,2                      ## @Giant
	.comm	_root_bus,8,3                   ## @root_bus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ifpseudo"

L_.str.1:                               ## @.str.1
	.asciz	"no ip found for %s\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"unit %d allocated\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_iflib_pseudodriver,4,2         ## @iflib_pseudodriver
	.no_dead_strip	_iflib_clone_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_clone_create
_iflib_clone_create:                    ; @iflib_clone_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_ifc_name
	mov	x20, x0
	stp	xzr, x22, [sp, #32]
	str	w21, [sp, #24]
	str	x0, [sp, #16]
Lloh0:
	adrp	x23, _iflib_pseudodev@GOTPAGE
Lloh1:
	ldr	x23, [x23, _iflib_pseudodev@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x21, _Giant@GOTPAGE
Lloh3:
	ldr	x21, [x21, _Giant@GOTPAGEOFF]
	mov	x0, x21
	bl	_mtx_lock
Lloh4:
	adrp	x8, _root_bus@GOTPAGE
Lloh5:
	ldr	x8, [x8, _root_bus@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_device_add_child
	str	x0, [x23]
	mov	x0, x21
	bl	_mtx_unlock
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, ne
	bl	_MPASS
LBB0_2:
	mov	x0, x20
	bl	_iflib_ip_lookup
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w0, [x0, #4]
	mov	x1, x19
	bl	_devclass_get_device
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x0, [x23]
	mov	x1, x22
	bl	_bus_generic_print_child
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	b	LBB0_9
LBB0_5:
	str	x20, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh16:
	adrp	x8, _ENOENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	b	LBB0_9
LBB0_6:
	bl	_PSEUDO_LOCK
	ldr	x0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_device_add_child
	mov	x20, x0
Lloh19:
	adrp	x1, _iflib_pseudodriver@GOTPAGE
Lloh20:
	ldr	x1, [x1, _iflib_pseudodriver@GOTPAGEOFF]
	bl	_device_set_driver
	bl	_PSEUDO_UNLOCK
	mov	x0, x20
	bl	_device_quiet
	mov	x0, x20
	bl	_device_attach
	cmp	w0, #0
	cset	w0, eq
	bl	_MPASS
	cmp	x20, #0
	cset	w0, ne
	bl	_MPASS
	ldr	w0, [x21, #4]
	mov	x1, x19
	bl	_devclass_get_device
	cmp	x0, x20
	cset	w0, eq
	bl	_MPASS
	ldr	w1, [x21]
	add	x2, sp, #12
	add	x3, sp, #16
	mov	x0, x20
	bl	_iflib_pseudo_register
	mov	x19, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh21:
	adrp	x21, _Giant@GOTPAGE
Lloh22:
	ldr	x21, [x21, _Giant@GOTPAGEOFF]
	mov	x0, x21
	bl	_mtx_lock
	ldr	x0, [x23]
	mov	x1, x20
	bl	_device_delete_child
	mov	x0, x21
	bl	_mtx_unlock
	b	LBB0_9
LBB0_8:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_device_set_softc
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_iflib_pseudodev,8,3            ; @iflib_pseudodev
	.comm	_Giant,4,2                      ; @Giant
	.comm	_root_bus,8,3                   ; @root_bus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ifpseudo"

l_.str.1:                               ; @.str.1
	.asciz	"no ip found for %s\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"unit %d allocated\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_iflib_pseudodriver,4,2         ; @iflib_pseudodriver
	.no_dead_strip	_iflib_clone_create
.subsections_via_symbols
