	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_display_hub_atomic_commit ## -- Begin function tegra_display_hub_atomic_commit
	.p2align	4, 0x90
_tegra_display_hub_atomic_commit:       ## @tegra_display_hub_atomic_commit
	.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), %r15
	movq	8(%r15), %r14
	movl	4(%r15), %edi
	callq	_to_tegra_display_hub_state
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	16(%rbx), %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movl	8(%rbx), %edx
	movslq	16(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movl	(%r15), %edi
	movq	8(%rbx), %rsi
	callq	_clk_set_parent
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	(%r15), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_display_hub_update       ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set rate of %pC to %lu Hz\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set parent of %pC to %pC: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_display_hub_atomic_commit ; -- Begin function tegra_display_hub_atomic_commit
	.p2align	2
_tegra_display_hub_atomic_commit:       ; @tegra_display_hub_atomic_commit
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x20, [x21, #8]
	ldr	w0, [x21, #4]
	bl	_to_tegra_display_hub_state
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x19, #16]
	bl	_clk_set_rate
	tbz	w0, #31, LBB0_3
; %bb.2:
	ldr	w2, [x19, #8]
	ldrsw	x3, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_3:
	ldr	w0, [x21]
	ldr	x1, [x19, #8]
	bl	_clk_set_parent
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_6
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_7
LBB0_5:
	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
	b	_tegra_display_hub_update
LBB0_6:
	ldr	w2, [x21]
	ldr	x3, [x19, #8]
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
	cbnz	x0, LBB0_5
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set rate of %pC to %lu Hz\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set parent of %pC to %pC: %d\n"

.subsections_via_symbols
