	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hibmc_crtc_atomic_begin
_hibmc_crtc_atomic_begin:               ## @hibmc_crtc_atomic_begin
	.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), %rax
	movq	(%rax), %r14
	movq	_HIBMC_PW_MODE_CTL_MODE_MODE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hibmc_set_power_mode
	movq	_HIBMC_CURRENT_GATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_HIBMC_CURR_GATE_DISPLAY_MASK@GOTPCREL(%rip), %rcx
	movq	_HIBMC_CURR_GATE_LOCALMEM_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$1, %edi
	callq	_HIBMC_CURR_GATE_DISPLAY
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_HIBMC_CURR_GATE_LOCALMEM
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hibmc_set_current_gate         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HIBMC_PW_MODE_CTL_MODE_MODE0,4,2 ## @HIBMC_PW_MODE_CTL_MODE_MODE0
	.comm	_HIBMC_CURRENT_GATE,8,3         ## @HIBMC_CURRENT_GATE
	.comm	_HIBMC_CURR_GATE_DISPLAY_MASK,4,2 ## @HIBMC_CURR_GATE_DISPLAY_MASK
	.comm	_HIBMC_CURR_GATE_LOCALMEM_MASK,4,2 ## @HIBMC_CURR_GATE_LOCALMEM_MASK
	.no_dead_strip	_hibmc_crtc_atomic_begin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hibmc_crtc_atomic_begin
_hibmc_crtc_atomic_begin:               ; @hibmc_crtc_atomic_begin
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _HIBMC_PW_MODE_CTL_MODE_MODE0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIBMC_PW_MODE_CTL_MODE_MODE0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hibmc_set_power_mode
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _HIBMC_CURRENT_GATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIBMC_CURRENT_GATE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _HIBMC_CURR_GATE_DISPLAY_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIBMC_CURR_GATE_DISPLAY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HIBMC_CURR_GATE_LOCALMEM_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HIBMC_CURR_GATE_LOCALMEM_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	mov	w0, #1
	bl	_HIBMC_CURR_GATE_DISPLAY
	orr	w20, w20, w0
	mov	w0, #1
	bl	_HIBMC_CURR_GATE_LOCALMEM
	orr	w1, w20, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hibmc_set_current_gate
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIBMC_PW_MODE_CTL_MODE_MODE0,4,2 ; @HIBMC_PW_MODE_CTL_MODE_MODE0
	.comm	_HIBMC_CURRENT_GATE,8,3         ; @HIBMC_CURRENT_GATE
	.comm	_HIBMC_CURR_GATE_DISPLAY_MASK,4,2 ; @HIBMC_CURR_GATE_DISPLAY_MASK
	.comm	_HIBMC_CURR_GATE_LOCALMEM_MASK,4,2 ; @HIBMC_CURR_GATE_LOCALMEM_MASK
	.no_dead_strip	_hibmc_crtc_atomic_begin
.subsections_via_symbols
