	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_fp_strap
_get_fp_strap:                          ## @get_fp_strap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_nouveau_drm
	cmpl	$4, (%rbx)
	jg	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	testb	$4, 288(%rcx)
	jne	LBB0_2
LBB0_3:
	movq	%rax, %rcx
	addq	$8, %rax
	movq	(%rcx), %rbx
	movq	_NV_DEVICE_INFO_V0_MAXWELL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jge	LBB0_4
## %bb.5:
	movq	_NV_DEVICE_INFO_V0_TESLA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	_NV_PEXTDEV_BOOT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_nvif_rd32
	cmpq	%r14, %rbx
	jge	LBB0_6
## %bb.7:
	shrl	$16, %eax
	jmp	LBB0_8
LBB0_4:
	movq	%rax, %rdi
	movl	$6144, %esi                     ## imm = 0x1800
	callq	_nvif_rd32
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_NVReadVgaCrtc5758
	jmp	LBB0_8
LBB0_6:
	sarl	$24, %eax
LBB0_8:
	andl	$15, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_DEVICE_INFO_V0_MAXWELL,8,3  ## @NV_DEVICE_INFO_V0_MAXWELL
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ## @NV_DEVICE_INFO_V0_TESLA
	.comm	_NV_PEXTDEV_BOOT_0,4,2          ## @NV_PEXTDEV_BOOT_0
	.no_dead_strip	_get_fp_strap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_fp_strap
_get_fp_strap:                          ; @get_fp_strap
	.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	x20, x1
	mov	x19, x0
	bl	_nouveau_drm
	mov	x8, x0
	ldr	w9, [x20]
	cmp	w9, #4
	b.gt	LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	ldrb	w9, [x9, #288]
	tbnz	w9, #2, LBB0_6
LBB0_2:
	add	x0, x8, #8
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _NV_DEVICE_INFO_V0_MAXWELL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_DEVICE_INFO_V0_MAXWELL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ge	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _NV_DEVICE_INFO_V0_TESLA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_DEVICE_INFO_V0_TESLA@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x8, _NV_PEXTDEV_BOOT_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV_PEXTDEV_BOOT_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_nvif_rd32
	cmp	x19, x20
	b.ge	LBB0_7
; %bb.4:
	lsr	w0, w0, #16
	b	LBB0_8
LBB0_5:
	mov	w1, #6144
	bl	_nvif_rd32
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #15
	bl	_NVReadVgaCrtc5758
	b	LBB0_8
LBB0_7:
	asr	w0, w0, #24
LBB0_8:
	and	w0, w0, #0xf
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_DEVICE_INFO_V0_MAXWELL,8,3  ; @NV_DEVICE_INFO_V0_MAXWELL
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ; @NV_DEVICE_INFO_V0_TESLA
	.comm	_NV_PEXTDEV_BOOT_0,4,2          ; @NV_PEXTDEV_BOOT_0
	.no_dead_strip	_get_fp_strap
.subsections_via_symbols
