	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd_tag_new
_bd_tag_new:                            ## @bd_tag_new
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_OBJ_TYPE_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_obj_alloc
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	testq	%r12, %r12
	movq	%r12, %rax
	jne	LBB0_4
## %bb.2:
	movq	_PROTO_IOC_BUSDMA_TAG_CREATE@GOTPCREL(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	_PROTO_IOC_BUSDMA_TAG_DERIVE@GOTPCREL(%rip), %rdi
LBB0_5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rbp), %r8
	movq	32(%rbp), %r9
	movq	24(%rbp), %rdx
	movq	16(%rbp), %rsi
	movl	(%rdi), %edi
	movl	%edi, -72(%rbp)
	je	LBB0_7
## %bb.6:
	movl	64(%rax), %r15d
LBB0_7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, -76(%rbp)
	movq	%r14, -96(%rbp)
	movq	%rcx, -104(%rbp)
	movq	%r13, -112(%rbp)
	movq	%r12, -120(%rbp)
	movq	%rsi, -136(%rbp)
	movq	%rdx, -128(%rbp)
	movq	%r9, -144(%rbp)
	movq	%r8, -88(%rbp)
	movq	_PROTO_IOC_BUSDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-144(%rbp), %rdx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.8:
	movl	$1, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 72(%rbx)
	movl	-80(%rbp), %eax
	movl	%eax, 64(%rbx)
	movq	-96(%rbp), %rax
	movq	%rax, 56(%rbx)
	movaps	-112(%rbp), %xmm0
	movups	%xmm0, 40(%rbx)
	movaps	-128(%rbp), %xmm0
	movups	%xmm0, 24(%rbx)
	movaps	-144(%rbp), %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_obj_free
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_TYPE_TAG,4,2               ## @OBJ_TYPE_TAG
	.comm	_PROTO_IOC_BUSDMA_TAG_DERIVE,4,2 ## @PROTO_IOC_BUSDMA_TAG_DERIVE
	.comm	_PROTO_IOC_BUSDMA_TAG_CREATE,4,2 ## @PROTO_IOC_BUSDMA_TAG_CREATE
	.comm	_PROTO_IOC_BUSDMA,4,2           ## @PROTO_IOC_BUSDMA
	.no_dead_strip	_bd_tag_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd_tag_new
_bd_tag_new:                            ; @bd_tag_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x23, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _OBJ_TYPE_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_TYPE_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_obj_alloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x29, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x28, [x29, #16]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh3:
	adrp	x8, _PROTO_IOC_BUSDMA_TAG_DERIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROTO_IOC_BUSDMA_TAG_DERIVE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PROTO_IOC_BUSDMA_TAG_CREATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PROTO_IOC_BUSDMA_TAG_CREATE@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #88]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w8, [x20, #64]
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	str	w8, [sp, #84]
	stp	x26, x27, [sp, #48]
	stp	x22, x25, [sp, #32]
	stp	x28, x23, [sp, #16]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	x24, x8, [sp, #64]
Lloh7:
	adrp	x8, _PROTO_IOC_BUSDMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PROTO_IOC_BUSDMA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #1
	stp	w8, w21, [x19]
	str	x20, [x19, #72]
	ldr	w8, [sp, #80]
	str	w8, [x19, #64]
	ldr	x8, [sp, #64]
	str	x8, [x19, #56]
	ldr	q0, [sp, #48]
	stur	q0, [x19, #40]
	ldp	q1, q0, [sp, #16]
	stur	q0, [x19, #24]
	stur	q1, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_obj_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_TYPE_TAG,4,2               ; @OBJ_TYPE_TAG
	.comm	_PROTO_IOC_BUSDMA_TAG_DERIVE,4,2 ; @PROTO_IOC_BUSDMA_TAG_DERIVE
	.comm	_PROTO_IOC_BUSDMA_TAG_CREATE,4,2 ; @PROTO_IOC_BUSDMA_TAG_CREATE
	.comm	_PROTO_IOC_BUSDMA,4,2           ; @PROTO_IOC_BUSDMA
	.no_dead_strip	_bd_tag_new
.subsections_via_symbols
