	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_dpcon
_setup_dpcon:                           ## @setup_dpcon
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_to_fsl_mc_device
	movq	_FSL_MC_POOL_DPCON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	callq	_fsl_mc_object_allocate
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_5:
	movl	(%r15), %edi
	movq	-32(%rbp), %rcx
	movl	4(%rcx), %edx
	xorl	%esi, %esi
	callq	_dpcon_open
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_4:
	movl	%ebx, %edi
	callq	_ERR_PTR
	jmp	LBB0_15
LBB0_7:
	movl	(%r15), %edi
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpcon_reset
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	movl	(%r15), %edi
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_dpcon_get_attributes
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	movl	(%r15), %edi
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpcon_enable
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r15), %edi
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpcon_close
LBB0_14:
	movq	-32(%rbp), %rdi
	callq	_fsl_mc_object_free
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-32(%rbp), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_MC_POOL_DPCON,4,2          ## @FSL_MC_POOL_DPCON
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough DPCONs, will go on as-is\n"

L_.str.1:                               ## @.str.1
	.asciz	"dpcon_open() failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"dpcon_reset() failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"dpcon_get_attributes() failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"dpcon_enable() failed\n"

	.no_dead_strip	_setup_dpcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_dpcon
_setup_dpcon:                           ; @setup_dpcon
	.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
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_to_fsl_mc_device
Lloh0:
	adrp	x8, _FSL_MC_POOL_DPCON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSL_MC_POOL_DPCON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_fsl_mc_object_allocate
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20]
	ldr	x3, [sp, #8]
	ldr	w2, [x3, #4]
	mov	w1, #0
	bl	_dpcon_open
	cbz	w0, LBB0_7
; %bb.4:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_6:
	mov	x0, x21
	bl	_ERR_PTR
	b	LBB0_15
LBB0_7:
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpcon_reset
	cbz	w0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_9:
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	x3, sp
	mov	w1, #0
	bl	_dpcon_get_attributes
	cbz	w0, LBB0_11
; %bb.10:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpcon_enable
	cbz	w0, LBB0_16
; %bb.12:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpcon_close
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_fsl_mc_object_free
	mov	x0, #0
LBB0_15:
	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
LBB0_16:
	ldr	x0, [sp, #8]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_MC_POOL_DPCON,4,2          ; @FSL_MC_POOL_DPCON
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough DPCONs, will go on as-is\n"

l_.str.1:                               ; @.str.1
	.asciz	"dpcon_open() failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"dpcon_reset() failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"dpcon_get_attributes() failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"dpcon_enable() failed\n"

	.no_dead_strip	_setup_dpcon
.subsections_via_symbols
