	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_dpbp
_setup_dpbp:                            ## @setup_dpbp
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_to_fsl_mc_device
	movq	_FSL_MC_POOL_DPBP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rdx
	movl	%eax, %edi
	callq	_fsl_mc_object_allocate
	testl	%eax, %eax
	je	LBB0_4
## %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_15
LBB0_4:
	movq	-40(%rbp), %rcx
	movq	%rcx, 8(%r15)
	movl	(%r15), %edi
	movl	4(%rcx), %edx
	xorl	%esi, %esi
	callq	_dpbp_open
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	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_err
	jmp	LBB0_15
LBB0_6:
	movl	(%r15), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpbp_reset
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movl	(%r15), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpbp_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_13:
	movl	(%r15), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpbp_close
LBB0_14:
	movq	-40(%rbp), %rdi
	callq	_fsl_mc_object_free
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r15), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_dpbp_get_attributes
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r15), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dpbp_disable
	movl	%r12d, %ebx
	jmp	LBB0_13
LBB0_16:
	movl	-48(%rbp), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_MC_POOL_DPBP,4,2           ## @FSL_MC_POOL_DPBP
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPBP device allocation failed\n"

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

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

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

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

	.no_dead_strip	_setup_dpbp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_dpbp
_setup_dpbp:                            ; @setup_dpbp
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_to_fsl_mc_device
Lloh0:
	adrp	x8, _FSL_MC_POOL_DPBP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSL_MC_POOL_DPBP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_fsl_mc_object_allocate
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, 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	w20, w8
	b	LBB0_13
LBB0_3:
	ldr	x3, [sp, #8]
	str	x3, [x19, #8]
	ldr	w0, [x19]
	ldr	w2, [x3, #4]
	mov	w1, #0
	bl	_dpbp_open
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_12
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_13
LBB0_6:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpbp_reset
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpbp_enable
	cbz	w0, LBB0_14
; %bb.9:
	mov	x20, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x21
	bl	_dev_err
LBB0_11:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpbp_close
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_fsl_mc_object_free
LBB0_13:
	mov	x0, x20
	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_14:
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	x3, sp
	mov	w1, #0
	bl	_dpbp_get_attributes
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.15:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_dpbp_disable
	b	LBB0_11
LBB0_16:
	ldr	w8, [sp]
	str	w8, [x19, #4]
	b	LBB0_13
	.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_DPBP,4,2           ; @FSL_MC_POOL_DPBP
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPBP device allocation failed\n"

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

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

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

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

	.no_dead_strip	_setup_dpbp
.subsections_via_symbols
