	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgscan_init                    ## -- Begin function bgscan_init
	.p2align	4, 0x90
_bgscan_init:                           ## @bgscan_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_bgscan_deinit
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_os_strchr
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rbx
	subq	%r13, %rbx
	incq	%r15
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
	leaq	L_.str(%rip), %r15
LBB0_3:
	movq	_bgscan_modules@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	movq	8(%rax,%r14,8), %rax
	incq	%r14
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_7:
	movl	%r14d, %eax
	movq	(%r12), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	*8(%rbx)
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, (%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movl	$-1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %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
	.space	1

	.comm	_bgscan_modules,8,3             ## @bgscan_modules
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"bgscan: Could not find module matching the parameter '%s'"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"bgscan: Initialized module '%s' with parameters '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgscan_init                    ; -- Begin function bgscan_init
	.p2align	2
_bgscan_init:                           ; @bgscan_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_bgscan_deinit
	mov	x0, x20
	mov	w1, #58
	bl	_os_strchr
	cbz	x0, LBB0_2
; %bb.1:
	sub	x23, x0, x20
	add	x22, x0, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_os_strlen
	mov	x23, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:
Lloh2:
	adrp	x24, _bgscan_modules@GOTPAGE
Lloh3:
	ldr	x24, [x24, _bgscan_modules@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_os_strncmp
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x25, lsl #3
	add	x25, x25, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_5
	b	LBB0_10
LBB0_7:
	ldr	x8, [x24]
	ldr	x23, [x8, w25, uxtw #3]
	cbz	x23, LBB0_10
; %bb.8:
	ldr	x8, [x23, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	blr	x8
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.9:
	str	x23, [x19]
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldrsw	x2, [x23]
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_bgscan_modules,8,3             ; @bgscan_modules
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"bgscan: Could not find module matching the parameter '%s'"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"bgscan: Initialized module '%s' with parameters '%s'"

.subsections_via_symbols
