	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_ports_attach               ## -- Begin function ddb_ports_attach
	.p2align	4, 0x90
_ddb_ports_attach:                      ## @ddb_ports_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	cmpl	$0, (%rdi)
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r15
	callq	_dvb_register_adapters
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	movq	_DDB_PORT_NONE@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movl	%eax, %ecx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%ecx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	%eax, %rsi
	addq	$8, %rbx
	cmpq	%rsi, %r12
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	(%rdi,%rbx), %rsi
	cmpq	(%r14), %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rbx, %rdi
	movl	%ecx, %r15d
	callq	_ddb_port_attach
	movl	%r15d, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	$1, %eax
	sbbl	$-1, %r13d
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_9:
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.10:
	movl	4(%r15), %edi
	cmpl	%ecx, %r13d
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_2:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%r14d, %r12d
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_warn
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registering adapters failed. Check DVB_MAX_ADAPTERS in config.\n"

	.comm	_DDB_PORT_NONE,8,3              ## @DDB_PORT_NONE
L_.str.1:                               ## @.str.1
	.asciz	"All connected ports failed to initialise!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"%d of %d connected ports failed to initialise!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_ports_attach               ; -- Begin function ddb_ports_attach
	.p2align	2
_ddb_ports_attach:                      ; @ddb_ports_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	bl	_dvb_register_adapters
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	mov	w20, #0
Lloh0:
	adrp	x24, _DDB_PORT_NONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DDB_PORT_NONE@GOTPAGEOFF]
	mov	x21, x8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x22
	ldr	x9, [x0]
	ldr	x10, [x24]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ddb_port_attach
	cmp	w0, #0
	cinc	w20, w20, ne
	ldr	w8, [x19]
	b	LBB0_5
LBB0_8:
	cbz	w20, LBB0_14
; %bb.9:
	ldr	w0, [x19, #4]
	cmp	w20, w21
	b.ne	LBB0_12
; %bb.10:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_11:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_12:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_warn
LBB0_13:
	mov	w20, #0
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registering adapters failed. Check DVB_MAX_ADAPTERS in config.\n"

	.comm	_DDB_PORT_NONE,8,3              ; @DDB_PORT_NONE
l_.str.1:                               ; @.str.1
	.asciz	"All connected ports failed to initialise!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"%d of %d connected ports failed to initialise!\n"

.subsections_via_symbols
