	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_bios_fp_mode           ## -- Begin function nouveau_bios_fp_mode
	.p2align	4, 0x90
_nouveau_bios_fp_mode:                  ## @nouveau_bios_fp_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_nouveau_drm
	movq	8(%rax), %r15
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %r12
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	28(%r12,%r15,4), %edi
	callq	_ROM16
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%rbx)
	movl	44(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 4(%rbx)
	movl	68(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 8(%rbx)
	movl	76(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 12(%rbx)
	movl	84(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 16(%rbx)
	movl	100(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 20(%rbx)
	movl	124(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 24(%rbx)
	movl	132(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 28(%rbx)
	movl	140(%r12,%r15,4), %edi
	callq	_ROM16
	incl	%eax
	movl	%eax, 32(%rbx)
	testb	$16, 148(%r12,%r15,4)
	jne	LBB0_2
## %bb.3:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	44(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, 44(%rbx)
	testb	$1, 148(%r12,%r15,4)
	jne	LBB0_5
## %bb.6:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movl	%eax, 44(%rbx)
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 36(%rbx)
	movq	%rbx, %rdi
	callq	_drm_mode_set_name
	movq	8(%r14), %r15
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_bios_fp_mode           ; -- Begin function nouveau_bios_fp_mode
	.p2align	2
_nouveau_bios_fp_mode:                  ; @nouveau_bios_fp_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_nouveau_drm
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	add	x21, x8, x0, lsl #2
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w0, [x21, #28]
	bl	_ROM16
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	str	w8, [x19]
	ldr	w0, [x21, #44]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #4]
	ldr	w0, [x21, #68]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #8]
	ldr	w0, [x21, #76]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #12]
	ldr	w0, [x21, #84]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #16]
	ldr	w0, [x21, #100]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #20]
	ldr	w0, [x21, #124]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #24]
	ldr	w0, [x21, #132]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #28]
	ldr	w0, [x21, #140]
	bl	_ROM16
	add	w8, w0, #1
	str	w8, [x19, #32]
	ldr	w8, [x21, #148]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
	tst	w8, #0x10
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x19, #44]
	orr	w8, w9, w8
	str	w8, [x19, #44]
Lloh4:
	adrp	x9, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh6:
	adrp	x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
	ldr	w11, [x21, #148]
	tst	w11, #0x1
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #44]
Lloh8:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #36]
	mov	x0, x19
	bl	_drm_mode_set_name
	ldr	x0, [x20, #8]
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
.subsections_via_symbols
