	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_calc_pbn_mode
_test_calc_pbn_mode:                    ## @test_calc_pbn_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$154000, %edi                   ## imm = 0x25990
	movl	$30, %esi
	callq	_drm_dp_calc_pbn_mode
	cmpl	$689, %eax                      ## imm = 0x2B1
	jne	LBB0_4
## %bb.1:
	movl	$234000, %edi                   ## imm = 0x39210
	movl	$30, %esi
	callq	_drm_dp_calc_pbn_mode
	cmpl	$1047, %eax                     ## imm = 0x417
	jne	LBB0_5
## %bb.2:
	movl	$297000, %edi                   ## imm = 0x48828
	movl	$24, %esi
	callq	_drm_dp_calc_pbn_mode
	movl	%eax, %r8d
	xorl	%eax, %eax
	cmpl	$1063, %r8d                     ## imm = 0x427
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	$297000, %esi                   ## imm = 0x48828
	movl	$24, %edx
	movl	$1063, %ecx                     ## imm = 0x427
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	$154000, %esi                   ## imm = 0x25990
	movl	$30, %edx
	movl	$689, %ecx                      ## imm = 0x2B1
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	$234000, %esi                   ## imm = 0x39210
	movl	$30, %edx
	movl	$1047, %ecx                     ## imm = 0x417
LBB0_6:
	movl	%eax, %r8d
LBB0_7:
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PBN calculation test failed - clock %d, bpp %d, expected PBN %d, actual PBN %d.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_test_calc_pbn_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_calc_pbn_mode
_test_calc_pbn_mode:                    ; @test_calc_pbn_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w0, #22928
	movk	w0, #2, lsl #16
	mov	w1, #30
	bl	_drm_dp_calc_pbn_mode
	cmp	w0, #689
	b.ne	LBB0_4
; %bb.1:
	mov	w0, #37392
	movk	w0, #3, lsl #16
	mov	w1, #30
	bl	_drm_dp_calc_pbn_mode
	cmp	w0, #1047
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #34856
	movk	w0, #4, lsl #16
	mov	w1, #24
	bl	_drm_dp_calc_pbn_mode
	cmp	w0, #1063
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x4, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #22928
	movk	w1, #2, lsl #16
	mov	w2, #30
	mov	w3, #689
	b	LBB0_7
LBB0_5:
	mov	x4, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #37392
	movk	w1, #3, lsl #16
	mov	w2, #30
	mov	w3, #1047
	b	LBB0_7
LBB0_6:
	mov	x4, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #34856
	movk	w1, #4, lsl #16
	mov	w2, #24
	mov	w3, #1063
LBB0_7:
	bl	_DRM_ERROR
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PBN calculation test failed - clock %d, bpp %d, expected PBN %d, actual PBN %d.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_test_calc_pbn_mode
.subsections_via_symbols
