	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_config
_hdmi_config:                           ## @hdmi_config
	.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
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_HDMI_CFG_FIFO_OVERRUN_CLR@GOTPCREL(%rip), %rax
	movq	_HDMI_CFG_FIFO_UNDERRUN_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_HDMI_CFG_ESS_NOT_OESS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	movq	_HDMI_CFG_HDMI_NOT_DVI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %ebx
	movl	(%r14), %eax
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_HDMI_CFG_H_SYNC_POL_NEG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %eax
LBB0_4:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_HDMI_CFG_V_SYNC_POL_NEG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_6:
	movq	_HDMI_CFG_DEVICE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_HDMI_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdmi_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_HDMI_CFG_FIFO_OVERRUN_CLR,4,2  ## @HDMI_CFG_FIFO_OVERRUN_CLR
	.comm	_HDMI_CFG_FIFO_UNDERRUN_CLR,4,2 ## @HDMI_CFG_FIFO_UNDERRUN_CLR
	.comm	_HDMI_CFG_ESS_NOT_OESS,4,2      ## @HDMI_CFG_ESS_NOT_OESS
	.comm	_HDMI_CFG_HDMI_NOT_DVI,4,2      ## @HDMI_CFG_HDMI_NOT_DVI
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
L_.str.1:                               ## @.str.1
	.asciz	"H Sync Negative\n"

	.comm	_HDMI_CFG_H_SYNC_POL_NEG,4,2    ## @HDMI_CFG_H_SYNC_POL_NEG
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
L_.str.2:                               ## @.str.2
	.asciz	"V Sync Negative\n"

	.comm	_HDMI_CFG_V_SYNC_POL_NEG,4,2    ## @HDMI_CFG_V_SYNC_POL_NEG
	.comm	_HDMI_CFG_DEVICE_EN,4,2         ## @HDMI_CFG_DEVICE_EN
	.comm	_HDMI_CFG,4,2                   ## @HDMI_CFG
	.no_dead_strip	_hdmi_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_config
_hdmi_config:                           ; @hdmi_config
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x8, _HDMI_CFG_FIFO_OVERRUN_CLR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_CFG_FIFO_OVERRUN_CLR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HDMI_CFG_FIFO_UNDERRUN_CLR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_CFG_FIFO_UNDERRUN_CLR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _HDMI_CFG_ESS_NOT_OESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDMI_CFG_ESS_NOT_OESS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
Lloh11:
	adrp	x10, _HDMI_CFG_HDMI_NOT_DVI@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDMI_CFG_HDMI_NOT_DVI@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh19:
	adrp	x8, _HDMI_CFG_H_SYNC_POL_NEG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDMI_CFG_H_SYNC_POL_NEG@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w8, [x19]
LBB0_2:
Lloh22:
	adrp	x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh27:
	adrp	x8, _HDMI_CFG_V_SYNC_POL_NEG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HDMI_CFG_V_SYNC_POL_NEG@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_4:
Lloh30:
	adrp	x8, _HDMI_CFG_DEVICE_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDMI_CFG_DEVICE_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w1, w8, w20
Lloh33:
	adrp	x8, _HDMI_CFG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HDMI_CFG@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdmi_write
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_HDMI_CFG_FIFO_OVERRUN_CLR,4,2  ; @HDMI_CFG_FIFO_OVERRUN_CLR
	.comm	_HDMI_CFG_FIFO_UNDERRUN_CLR,4,2 ; @HDMI_CFG_FIFO_UNDERRUN_CLR
	.comm	_HDMI_CFG_ESS_NOT_OESS,4,2      ; @HDMI_CFG_ESS_NOT_OESS
	.comm	_HDMI_CFG_HDMI_NOT_DVI,4,2      ; @HDMI_CFG_HDMI_NOT_DVI
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
l_.str.1:                               ; @.str.1
	.asciz	"H Sync Negative\n"

	.comm	_HDMI_CFG_H_SYNC_POL_NEG,4,2    ; @HDMI_CFG_H_SYNC_POL_NEG
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
l_.str.2:                               ; @.str.2
	.asciz	"V Sync Negative\n"

	.comm	_HDMI_CFG_V_SYNC_POL_NEG,4,2    ; @HDMI_CFG_V_SYNC_POL_NEG
	.comm	_HDMI_CFG_DEVICE_EN,4,2         ; @HDMI_CFG_DEVICE_EN
	.comm	_HDMI_CFG,4,2                   ; @HDMI_CFG
	.no_dead_strip	_hdmi_config
.subsections_via_symbols
