	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_host_attach
_dsi_host_attach:                       ## @dsi_host_attach
	.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	%rsi, %rbx
	callq	_to_msm_dsi_host
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movl	20(%rbx), %ecx
	movl	%ecx, 44(%r15)
	movq	%rax, 8(%r15)
	movl	16(%rbx), %eax
	movl	%eax, 40(%r15)
	movl	12(%rbx), %eax
	movl	%eax, 36(%r15)
	addq	$8, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dsi_host_init_panel_gpios
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	32(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	xorl	%r14d, %r14d
	cmpq	$0, 24(%r15)
	je	LBB0_5
## %bb.4:
	movl	20(%r15), %edi
	addq	$16, %r15
	movq	%r15, %rsi
	callq	_queue_work
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"id=%d"

	.no_dead_strip	_dsi_host_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_host_attach
_dsi_host_attach:                       ; @dsi_host_attach
	.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	x20, x1
	bl	_to_msm_dsi_host
	ldr	x8, [x20]
	ldr	x9, [x0]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	w9, [x20, #20]
	str	w9, [x0, #44]
	str	x8, [x0, #8]
	ldur	d0, [x20, #12]
	stur	d0, [x0, #36]
	add	x1, x20, #8
	bl	_dsi_host_init_panel_gpios
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w1, [x19, #32]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #20]
	add	x1, x19, #16
	bl	_queue_work
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"id=%d"

	.no_dead_strip	_dsi_host_attach
.subsections_via_symbols
