	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbcs_intr_alloc
_mbcs_intr_alloc:                       ## @mbcs_intr_alloc
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	movl	(%rdi), %edi
	movq	_TIOCX_CORELET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_tiocx_irq_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, (%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movl	(%rax), %edi
	movl	%edi, 40(%rbx)
	movq	_mbcs_completion_intr_handler@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_tiocx_irq_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, 8(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 36(%rbx)
	movl	(%rax), %edi
	movl	%edi, 32(%rbx)
	movq	(%r12), %rsi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_tiocx_irq_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, 16(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	(%rax), %edi
	movl	%edi, 24(%rbx)
	movq	(%r12), %rsi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_tiocx_irq_free
LBB0_8:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_tiocx_irq_free
LBB0_10:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_11:
	movq	(%rbx), %rdi
	callq	_tiocx_irq_free
LBB0_12:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCX_CORELET,4,2              ## @TIOCX_CORELET
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_mbcs_completion_intr_handler,8,3 ## @mbcs_completion_intr_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MBCS get intr"

L_.str.1:                               ## @.str.1
	.asciz	"MBCS put intr"

L_.str.2:                               ## @.str.2
	.asciz	"MBCS algo intr"

	.no_dead_strip	_mbcs_intr_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbcs_intr_alloc
_mbcs_intr_alloc:                       ; @mbcs_intr_alloc
	.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	x20, x0
	ldr	x19, [x0, #8]
	stp	xzr, xzr, [x19]
	str	xzr, [x19, #16]
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _TIOCX_CORELET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TIOCX_CORELET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #-1
	mov	w3, #-1
	mov	w4, #-1
	bl	_tiocx_irq_alloc
	cbz	x0, LBB0_11
; %bb.1:
	str	x0, [x19]
	ldr	d0, [x0]
Lloh2:
	adrp	x22, _mbcs_completion_intr_handler@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mbcs_completion_intr_handler@GOTPAGEOFF]
	str	d0, [x19, #40]
	ldr	x1, [x22]
Lloh4:
	adrp	x23, _IRQF_SHARED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IRQF_SHARED@GOTPAGEOFF]
	ldr	w2, [x23]
	fmov	w0, s0
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbnz	x0, LBB0_10
; %bb.2:
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #-1
	mov	w3, #-1
	mov	w4, #-1
	bl	_tiocx_irq_alloc
	cbz	x0, LBB0_9
; %bb.3:
	str	x0, [x19, #8]
	ldr	d0, [x0]
	str	d0, [x19, #32]
	ldr	x1, [x22]
	ldr	w2, [x23]
	fmov	w0, s0
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #-1
	mov	w3, #-1
	mov	w4, #-1
	bl	_tiocx_irq_alloc
	cbz	x0, LBB0_7
; %bb.5:
	str	x0, [x19, #16]
	ldr	d0, [x0]
	str	d0, [x19, #24]
	ldr	x1, [x22]
	ldr	w2, [x23]
	fmov	w0, s0
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x0, [x19, #16]
	bl	_tiocx_irq_free
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_tiocx_irq_free
LBB0_9:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
LBB0_10:
	ldr	x0, [x19]
	bl	_tiocx_irq_free
LBB0_11:
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCX_CORELET,4,2              ; @TIOCX_CORELET
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_mbcs_completion_intr_handler,8,3 ; @mbcs_completion_intr_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MBCS get intr"

l_.str.1:                               ; @.str.1
	.asciz	"MBCS put intr"

l_.str.2:                               ; @.str.2
	.asciz	"MBCS algo intr"

	.no_dead_strip	_mbcs_intr_alloc
.subsections_via_symbols
