	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_get_backlight
_i9xx_get_backlight:                    ## @i9xx_get_backlight
	.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, %r15
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	_BLC_PWM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_BACKLIGHT_DUTY_CYCLE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	setl	%cl
	sarl	%cl, %ebx
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_LBPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	imull	-28(%rbp), %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLC_PWM_CTL,4,2                ## @BLC_PWM_CTL
	.comm	_BACKLIGHT_DUTY_CYCLE_MASK,4,2  ## @BACKLIGHT_DUTY_CYCLE_MASK
	.comm	_LBPC,4,2                       ## @LBPC
	.no_dead_strip	_i9xx_get_backlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_get_backlight
_i9xx_get_backlight:                    ; @i9xx_get_backlight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x20, x0
Lloh0:
	adrp	x8, _BLC_PWM_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLC_PWM_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _BACKLIGHT_DUTY_CYCLE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BACKLIGHT_DUTY_CYCLE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w19, w8, w0
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #4
	cset	w8, lt
	asr	w19, w19, w8
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _LBPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LBPC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	mul	w19, w8, w19
LBB0_2:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BLC_PWM_CTL,4,2                ; @BLC_PWM_CTL
	.comm	_BACKLIGHT_DUTY_CYCLE_MASK,4,2  ; @BACKLIGHT_DUTY_CYCLE_MASK
	.comm	_LBPC,4,2                       ; @LBPC
	.no_dead_strip	_i9xx_get_backlight
.subsections_via_symbols
