	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bdisp_hw_alloc_filters         ## -- Begin function bdisp_hw_alloc_filters
	.p2align	4, 0x90
_bdisp_hw_alloc_filters:                ## @bdisp_hw_alloc_filters
	.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	_BDISP_HF_NB@GOTPCREL(%rip), %rbx
	movq	_NB_H_FILTER@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	imull	(%rbx), %eax
	movq	_BDISP_VF_NB@GOTPCREL(%rip), %rcx
	movq	_NB_V_FILTER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	imull	(%rcx), %esi
	addl	%eax, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_ATTR_WRITE_COMBINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-44(%rbp), %rdx
	callq	_dma_alloc_attrs
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.2:
	movq	_bdisp_h_filter@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_bdisp_h_spec@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx,%r13), %edx
	movl	%edx, 20(%rax,%r13,2)
	movl	4(%rcx,%r13), %edx
	movl	%edx, 16(%rax,%r13,2)
	movl	(%rcx,%r13), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	(%r12), %rax
	movq	%r14, 8(%rax,%r13,2)
	movl	-44(%rbp), %ecx
	movq	(%r12), %rax
	movl	%ecx, (%rax,%r13,2)
	movl	(%rbx), %ecx
	addq	%rcx, %r14
	addl	%ecx, -44(%rbp)
	incq	%r15
	movq	_NB_H_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addq	$12, %r13
	cmpq	%rcx, %r15
	jb	LBB0_3
LBB0_4:
	movq	_NB_V_FILTER@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_bdisp_v_filter@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	_BDISP_VF_NB@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_bdisp_v_spec@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx,%rbx), %edx
	movl	%edx, 20(%rax,%rbx,2)
	movl	4(%rcx,%rbx), %edx
	movl	%edx, 16(%rax,%rbx,2)
	movl	(%rcx,%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	(%r12), %rax
	movq	%r14, 8(%rax,%rbx,2)
	movl	-44(%rbp), %ecx
	movq	(%r12), %rax
	movl	%ecx, (%rax,%rbx,2)
	movl	(%r15), %ecx
	addq	%rcx, %r14
	addl	%ecx, -44(%rbp)
	incq	%r13
	movq	_NB_V_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addq	$12, %rbx
	cmpq	%rcx, %r13
	jb	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDISP_HF_NB,4,2                ## @BDISP_HF_NB
	.comm	_NB_H_FILTER,4,2                ## @NB_H_FILTER
	.comm	_BDISP_VF_NB,4,2                ## @BDISP_VF_NB
	.comm	_NB_V_FILTER,4,2                ## @NB_V_FILTER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DMA_ATTR_WRITE_COMBINE,4,2     ## @DMA_ATTR_WRITE_COMBINE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bdisp_h_spec,8,3               ## @bdisp_h_spec
	.comm	_bdisp_h_filter,8,3             ## @bdisp_h_filter
	.comm	_bdisp_v_spec,8,3               ## @bdisp_v_spec
	.comm	_bdisp_v_filter,8,3             ## @bdisp_v_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bdisp_hw_alloc_filters         ; -- Begin function bdisp_hw_alloc_filters
	.p2align	2
_bdisp_hw_alloc_filters:                ; @bdisp_hw_alloc_filters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _BDISP_HF_NB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BDISP_HF_NB@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _NB_H_FILTER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NB_H_FILTER@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x20, _BDISP_VF_NB@GOTPAGE
Lloh5:
	ldr	x20, [x20, _BDISP_VF_NB@GOTPAGEOFF]
	mul	w8, w9, w8
	ldr	w9, [x20]
Lloh6:
	adrp	x21, _NB_V_FILTER@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NB_V_FILTER@GOTPAGEOFF]
	ldr	w10, [x21]
	madd	w1, w10, w9, w8
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _DMA_ATTR_WRITE_COMBINE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_ATTR_WRITE_COMBINE@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x2, sp, #12
	bl	_dma_alloc_attrs
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x23]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	mov	x26, #0
Lloh14:
	adrp	x27, _bdisp_h_filter@GOTPAGE
Lloh15:
	ldr	x27, [x27, _bdisp_h_filter@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh16:
	adrp	x28, _bdisp_h_spec@GOTPAGE
Lloh17:
	ldr	x28, [x28, _bdisp_h_spec@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x28]
	add	x9, x9, x25
	ldur	d0, [x9, #4]
	add	x8, x8, x24
	str	d0, [x8, #16]
	ldr	w1, [x9]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_memcpy
	ldr	x8, [x27]
	add	x8, x8, x24
	str	x19, [x8, #8]
	ldr	w9, [sp, #12]
	ldr	x8, [x27]
	str	w9, [x8, x24]
	ldr	w9, [x22]
	add	x19, x19, x9
	ldr	w10, [sp, #12]
	add	w9, w10, w9
	str	w9, [sp, #12]
	add	x26, x26, #1
	ldr	w9, [x23]
	add	x25, x25, #12
	add	x24, x24, #24
	cmp	x26, x9
	b.lo	LBB0_3
LBB0_4:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
Lloh18:
	adrp	x25, _bdisp_v_filter@GOTPAGE
Lloh19:
	ldr	x25, [x25, _bdisp_v_filter@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh20:
	adrp	x26, _bdisp_v_spec@GOTPAGE
Lloh21:
	ldr	x26, [x26, _bdisp_v_spec@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	add	x9, x9, x23
	ldur	d0, [x9, #4]
	add	x8, x8, x22
	str	d0, [x8, #16]
	ldr	w1, [x9]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_memcpy
	ldr	x8, [x25]
	add	x8, x8, x22
	str	x19, [x8, #8]
	ldr	w9, [sp, #12]
	ldr	x8, [x25]
	str	w9, [x8, x22]
	ldr	w9, [x20]
	add	x19, x19, x9
	ldr	w10, [sp, #12]
	add	w9, w10, w9
	str	w9, [sp, #12]
	add	x24, x24, #1
	ldr	w9, [x21]
	add	x23, x23, #12
	add	x22, x22, #24
	cmp	x24, x9
	b.lo	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BDISP_HF_NB,4,2                ; @BDISP_HF_NB
	.comm	_NB_H_FILTER,4,2                ; @NB_H_FILTER
	.comm	_BDISP_VF_NB,4,2                ; @BDISP_VF_NB
	.comm	_NB_V_FILTER,4,2                ; @NB_V_FILTER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DMA_ATTR_WRITE_COMBINE,4,2     ; @DMA_ATTR_WRITE_COMBINE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bdisp_h_spec,8,3               ; @bdisp_h_spec
	.comm	_bdisp_h_filter,8,3             ; @bdisp_h_filter
	.comm	_bdisp_v_spec,8,3               ; @bdisp_v_spec
	.comm	_bdisp_v_filter,8,3             ; @bdisp_v_filter
.subsections_via_symbols
