	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_bool
_d3dx9_base_effect_get_bool:            ## @d3dx9_base_effect_get_bool
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_get_valid_parameter
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpl	$0, 16(%rax)
	jne	LBB0_6
## %bb.3:
	cmpl	$1, (%rax)
	jne	LBB0_6
## %bb.4:
	cmpl	$1, 4(%rax)
	jne	LBB0_6
## %bb.5:
	movq	_D3DXPT_BOOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	movq	%rbx, %rdi
	callq	_set_number
	cmpq	$0, (%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPT_BOOL,4,2                ## @D3DXPT_BOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Returning %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"TRUE"

L_.str.2:                               ## @.str.2
	.asciz	"FALSE"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
L_.str.3:                               ## @.str.3
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_get_bool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_base_effect_get_bool
_d3dx9_base_effect_get_bool:            ; @d3dx9_base_effect_get_bool
	.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, x2
	bl	_get_valid_parameter
	cbz	x19, LBB0_6
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _D3DXPT_BOOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DXPT_BOOL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w2, [x0, #8]
	mov	x0, x19
	bl	_set_number
	ldr	x8, [x19]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x1, x10, x9, eq
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh9:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
Lloh13:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPT_BOOL,4,2                ; @D3DXPT_BOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Returning %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"TRUE"

l_.str.2:                               ; @.str.2
	.asciz	"FALSE"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
l_.str.3:                               ; @.str.3
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_get_bool
.subsections_via_symbols
