	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_aux_init_backlight_funcs ## -- Begin function intel_dp_aux_init_backlight_funcs
	.p2align	4, 0x90
_intel_dp_aux_init_backlight_funcs:     ## @intel_dp_aux_init_backlight_funcs
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	_i915_modparams@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %ecx
	jne	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	movq	_INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_intel_dp_aux_display_control_capable
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_intel_dp_aux_setup_backlight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_intel_dp_aux_enable_backlight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_intel_dp_aux_disable_backlight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_intel_dp_aux_set_backlight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_intel_dp_aux_get_backlight@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_modparams,4,2             ## @i915_modparams
	.comm	_INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE,8,3 ## @INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_intel_dp_aux_setup_backlight,4,2 ## @intel_dp_aux_setup_backlight
	.comm	_intel_dp_aux_enable_backlight,4,2 ## @intel_dp_aux_enable_backlight
	.comm	_intel_dp_aux_disable_backlight,4,2 ## @intel_dp_aux_disable_backlight
	.comm	_intel_dp_aux_set_backlight,4,2 ## @intel_dp_aux_set_backlight
	.comm	_intel_dp_aux_get_backlight,4,2 ## @intel_dp_aux_get_backlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_aux_init_backlight_funcs ; -- Begin function intel_dp_aux_init_backlight_funcs
	.p2align	2
_intel_dp_aux_init_backlight_funcs:     ; @intel_dp_aux_init_backlight_funcs
	.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, x0
	ldr	w0, [x0]
	bl	_to_i915
Lloh0:
	adrp	x8, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_intel_dp_aux_display_control_capable
	cbz	w0, LBB0_5
; %bb.4:
	mov	w0, #0
Lloh6:
	adrp	x8, _intel_dp_aux_setup_backlight@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_dp_aux_setup_backlight@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh9:
	adrp	x8, _intel_dp_aux_enable_backlight@GOTPAGE
Lloh10:
	ldr	x8, [x8, _intel_dp_aux_enable_backlight@GOTPAGEOFF]
Lloh11:
	adrp	x9, _intel_dp_aux_disable_backlight@GOTPAGE
Lloh12:
	ldr	x9, [x9, _intel_dp_aux_disable_backlight@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh15:
	adrp	x8, _intel_dp_aux_set_backlight@GOTPAGE
Lloh16:
	ldr	x8, [x8, _intel_dp_aux_set_backlight@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _intel_dp_aux_get_backlight@GOTPAGE
Lloh19:
	ldr	x9, [x9, _intel_dp_aux_get_backlight@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_modparams,4,2             ; @i915_modparams
	.comm	_INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE,8,3 ; @INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_intel_dp_aux_setup_backlight,4,2 ; @intel_dp_aux_setup_backlight
	.comm	_intel_dp_aux_enable_backlight,4,2 ; @intel_dp_aux_enable_backlight
	.comm	_intel_dp_aux_disable_backlight,4,2 ; @intel_dp_aux_disable_backlight
	.comm	_intel_dp_aux_set_backlight,4,2 ; @intel_dp_aux_set_backlight
	.comm	_intel_dp_aux_get_backlight,4,2 ; @intel_dp_aux_get_backlight
.subsections_via_symbols
