	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bxt_disable_backlight
_bxt_disable_backlight:                 ## @bxt_disable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_intel_connector
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_panel_actually_set_backlight
	movl	(%rbx), %edi
	callq	_BXT_BLC_PWM_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_BXT_BLC_PWM_CTL
	movq	_BXT_BLC_PWM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%r14d, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	cmpl	$1, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_UTIL_PIN_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_UTIL_PIN_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BXT_BLC_PWM_ENABLE,4,2         ## @BXT_BLC_PWM_ENABLE
	.comm	_UTIL_PIN_CTL,4,2               ## @UTIL_PIN_CTL
	.comm	_UTIL_PIN_ENABLE,4,2            ## @UTIL_PIN_ENABLE
	.no_dead_strip	_bxt_disable_backlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bxt_disable_backlight
_bxt_disable_backlight:                 ; @bxt_disable_backlight
	.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_intel_connector
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x0, x19
	mov	w1, #0
	bl	_intel_panel_actually_set_backlight
	ldr	w0, [x20]
	bl	_BXT_BLC_PWM_CTL
	bl	_I915_READ
	mov	x19, x0
	ldr	w0, [x20]
	bl	_BXT_BLC_PWM_CTL
Lloh0:
	adrp	x8, _BXT_BLC_PWM_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BXT_BLC_PWM_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w19, w8
	bl	_I915_WRITE
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _UTIL_PIN_CTL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _UTIL_PIN_CTL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh5:
	adrp	x8, _UTIL_PIN_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UTIL_PIN_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_2:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BXT_BLC_PWM_ENABLE,4,2         ; @BXT_BLC_PWM_ENABLE
	.comm	_UTIL_PIN_CTL,4,2               ; @UTIL_PIN_CTL
	.comm	_UTIL_PIN_ENABLE,4,2            ; @UTIL_PIN_ENABLE
	.no_dead_strip	_bxt_disable_backlight
.subsections_via_symbols
