	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_handle_common_int_4
_anx78xx_handle_common_int_4:           ## @anx78xx_handle_common_int_4
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	8(%r15), %rax
	movq	_I2C_IDX_TX_P2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_COMMON_INT_STATUS4_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_2:
	movq	_SP_HPD_LOST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r15, %rdi
	callq	_anx78xx_poweroff
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
	jmp	LBB0_6
LBB0_4:
	movq	_SP_HPD_PLUG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_6:
	movl	$1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handle common interrupt 4: %02x\n"

	.comm	_I2C_IDX_TX_P2,8,3              ## @I2C_IDX_TX_P2
	.comm	_SP_COMMON_INT_STATUS4_REG,4,2  ## @SP_COMMON_INT_STATUS4_REG
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write SP_COMMON_INT_STATUS4 %d\n"

	.comm	_SP_HPD_LOST,4,2                ## @SP_HPD_LOST
L_.str.2:                               ## @.str.2
	.asciz	"IRQ: Hot plug detect - cable is pulled out\n"

	.comm	_SP_HPD_PLUG,4,2                ## @SP_HPD_PLUG
L_.str.3:                               ## @.str.3
	.asciz	"IRQ: Hot plug detect - cable plug\n"

	.no_dead_strip	_anx78xx_handle_common_int_4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_handle_common_int_4
_anx78xx_handle_common_int_4:           ; @anx78xx_handle_common_int_4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _I2C_IDX_TX_P2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_IDX_TX_P2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
Lloh5:
	adrp	x8, _SP_COMMON_INT_STATUS4_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SP_COMMON_INT_STATUS4_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_regmap_write
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
	b	LBB0_7
LBB0_2:
Lloh10:
	adrp	x8, _SP_HPD_LOST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SP_HPD_LOST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_anx78xx_poweroff
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _SP_HPD_PLUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SP_HPD_PLUG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.5:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handle common interrupt 4: %02x\n"

	.comm	_I2C_IDX_TX_P2,8,3              ; @I2C_IDX_TX_P2
	.comm	_SP_COMMON_INT_STATUS4_REG,4,2  ; @SP_COMMON_INT_STATUS4_REG
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write SP_COMMON_INT_STATUS4 %d\n"

	.comm	_SP_HPD_LOST,4,2                ; @SP_HPD_LOST
l_.str.2:                               ; @.str.2
	.asciz	"IRQ: Hot plug detect - cable is pulled out\n"

	.comm	_SP_HPD_PLUG,4,2                ; @SP_HPD_PLUG
l_.str.3:                               ; @.str.3
	.asciz	"IRQ: Hot plug detect - cable plug\n"

	.no_dead_strip	_anx78xx_handle_common_int_4
.subsections_via_symbols
