	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_card_ubr0
_open_card_ubr0:                        ## @open_card_ubr0
	.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	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	32(%rbx), %rax
	movq	%r14, (%rax)
	movq	_SCHED_UBR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 4(%r14)
	movq	%rbx, %rdi
	callq	_alloc_scq
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	16(%rbx), %rax
	movq	%r14, (%rax)
	movq	$0, 16(%r14)
	movl	(%rbx), %eax
	movq	8(%r14), %rsi
	movl	%eax, (%rsi)
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_fill_scd
	movq	8(%rbx), %rsi
	movq	_TCT_UBR@GOTPCREL(%rip), %rax
	movl	(%rbx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_sram
	movq	8(%rbx), %rsi
	incq	%rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	movq	8(%rbx), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	movq	8(%rbx), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	movq	8(%rbx), %rsi
	addq	$5, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	movq	8(%rbx), %rsi
	addq	$6, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sram
	movq	8(%rbx), %rsi
	addq	$7, %rsi
	movq	_TCT_FLAG_UBR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_sram
	movq	_VCF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_TCMDQ_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SAR_REG_TCMDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	jmp	LBB0_6
LBB0_1:
	movl	24(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movl	24(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_printk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can't alloc vc\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCHED_UBR0,4,2                 ## @SCHED_UBR0
L_.str.1:                               ## @.str.1
	.asciz	"%s: can't get SCQ.\n"

	.comm	_TCT_UBR,4,2                    ## @TCT_UBR
	.comm	_TCT_FLAG_UBR,4,2               ## @TCT_FLAG_UBR
	.comm	_VCF_IDLE,4,2                   ## @VCF_IDLE
	.comm	_TCMDQ_START,4,2                ## @TCMDQ_START
	.comm	_SAR_REG_TCMDQ,4,2              ## @SAR_REG_TCMDQ
	.no_dead_strip	_open_card_ubr0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_card_ubr0
_open_card_ubr0:                        ; @open_card_ubr0
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #32]
	str	x0, [x8]
Lloh3:
	adrp	x8, _SCHED_UBR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCHED_UBR0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	str	w1, [x0, #4]
	mov	x0, x19
	bl	_alloc_scq
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	str	x20, [x8]
	str	xzr, [x20, #16]
	ldr	w8, [x19]
	ldr	x1, [x20, #8]
	str	w8, [x1]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_fill_scd
	ldr	x1, [x19, #8]
Lloh6:
	adrp	x8, _TCT_UBR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCT_UBR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #2
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #3
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #5
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #6
	mov	x0, x19
	mov	w2, #0
	bl	_write_sram
	ldr	x8, [x19, #8]
	add	x1, x8, #7
Lloh9:
	adrp	x8, _TCT_FLAG_UBR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCT_FLAG_UBR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_sram
Lloh12:
	adrp	x8, _VCF_IDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VCF_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh15:
	adrp	x8, _TCMDQ_START@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TCMDQ_START@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _SAR_REG_TCMDQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SAR_REG_TCMDQ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_writel
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	w1, [x19, #24]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19, #24]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_printk
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can't alloc vc\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCHED_UBR0,4,2                 ; @SCHED_UBR0
l_.str.1:                               ; @.str.1
	.asciz	"%s: can't get SCQ.\n"

	.comm	_TCT_UBR,4,2                    ; @TCT_UBR
	.comm	_TCT_FLAG_UBR,4,2               ; @TCT_FLAG_UBR
	.comm	_VCF_IDLE,4,2                   ; @VCF_IDLE
	.comm	_TCMDQ_START,4,2                ; @TCMDQ_START
	.comm	_SAR_REG_TCMDQ,4,2              ; @SAR_REG_TCMDQ
	.no_dead_strip	_open_card_ubr0
.subsections_via_symbols
