	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_phys_hws_pga
_init_phys_hws_pga:                     ## @init_phys_hws_pga
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	(%rdi), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_drm_pci_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	8(%r14), %rdi
LBB0_3:
	movl	(%rax), %ebx
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax), %eax
	sarl	$28, %eax
	andl	$240, %eax
	orl	%eax, %ebx
LBB0_5:
	movq	_HWS_PGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%edi, (%r14)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HWS_PGA,4,2                    ## @HWS_PGA
	.no_dead_strip	_init_phys_hws_pga
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_phys_hws_pga
_init_phys_hws_pga:                     ; @init_phys_hws_pga
	.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, x0
	ldr	x0, [x0, #8]
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x22]
	mov	x2, x1
	bl	_drm_pci_alloc
	str	x0, [x21]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x8, x0
	ldr	x0, [x19, #8]
LBB0_3:
	ldr	w20, [x8]
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.lt	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	w8, [x8]
	asr	w8, w8, #28
	and	w8, w8, #0xf0
	orr	w20, w8, w20
LBB0_5:
Lloh2:
	adrp	x8, _HWS_PGA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HWS_PGA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_I915_WRITE
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	str	w0, [x19]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_memset
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HWS_PGA,4,2                    ; @HWS_PGA
	.no_dead_strip	_init_phys_hws_pga
.subsections_via_symbols
