	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d12_init_pipeline            ## -- Begin function d3d12_init_pipeline
	.p2align	4, 0x90
_d3d12_init_pipeline:                   ## @d3d12_init_pipeline
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%edi, %r15d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_D3DGetBufferPointer
	movq	%rax, 64(%rbx)
	movq	%r14, %rdi
	callq	_D3DGetBufferSize
	jmp	LBB0_3
LBB0_2:
	movq	$0, 64(%rbx)
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, 56(%rbx)
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_D3DGetBufferPointer
	movq	%rax, 48(%rbx)
	movq	%r13, %rdi
	callq	_D3DGetBufferSize
	jmp	LBB0_6
LBB0_5:
	movq	$0, 48(%rbx)
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 40(%rbx)
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_D3DGetBufferPointer
	movq	%rax, 32(%rbx)
	movq	%r12, %rdi
	callq	_D3DGetBufferSize
	jmp	LBB0_9
LBB0_8:
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, 24(%rbx)
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_D3D12_FILL_MODE_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_D3D12_CULL_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_D3D12CreateGraphicsPipelineState
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_D3D12_FILL_MODE_SOLID,4,2      ## @D3D12_FILL_MODE_SOLID
	.comm	_D3D12_CULL_MODE_NONE,4,2       ## @D3D12_CULL_MODE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d12_init_pipeline            ; -- Begin function d3d12_init_pipeline
	.p2align	2
_d3d12_init_pipeline:                   ; @d3d12_init_pipeline
	.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	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x24, x1
	mov	x0, x1
	bl	_D3DGetBufferPointer
	str	x0, [x20, #64]
	mov	x0, x24
	bl	_D3DGetBufferSize
	str	x0, [x20, #56]
	cbz	x23, LBB0_5
LBB0_2:
	mov	x0, x23
	bl	_D3DGetBufferPointer
	str	x0, [x20, #48]
	mov	x0, x23
	bl	_D3DGetBufferSize
	str	x0, [x20, #40]
	cbz	x22, LBB0_6
LBB0_3:
	mov	x0, x22
	bl	_D3DGetBufferPointer
	str	x0, [x20, #32]
	mov	x0, x22
	bl	_D3DGetBufferSize
	b	LBB0_7
LBB0_4:
	mov	x0, #0
	str	xzr, [x20, #64]
	str	x0, [x20, #56]
	cbnz	x23, LBB0_2
LBB0_5:
	mov	x0, #0
	str	xzr, [x20, #48]
	str	x0, [x20, #40]
	cbnz	x22, LBB0_3
LBB0_6:
	mov	x0, #0
	str	xzr, [x20, #32]
LBB0_7:
	str	x0, [x20, #24]
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh3:
	adrp	x8, _D3D12_FILL_MODE_SOLID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3D12_FILL_MODE_SOLID@GOTPAGEOFF]
Lloh5:
	adrp	x9, _D3D12_CULL_MODE_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _D3D12_CULL_MODE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	movi.2s	v0, #1
	str	d0, [x20]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_D3D12CreateGraphicsPipelineState
	mov	w0, #1
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_D3D12_FILL_MODE_SOLID,4,2      ; @D3D12_FILL_MODE_SOLID
	.comm	_D3D12_CULL_MODE_NONE,4,2       ; @D3D12_CULL_MODE_NONE
.subsections_via_symbols
