	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_device                    ## -- Begin function find_device
	.p2align	4, 0x90
_find_device:                           ## @find_device
	.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	%rdi, %rbx
	movq	$0, -48(%rbp)
	xorl	%edi, %edi
	callq	_ucl_parser_new
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ucl_parser_add_file
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	%r14, %rdi
	callq	_ucl_parser_get_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	%r14, %rdi
	callq	_ucl_parser_get_object
	movq	%rax, %r12
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %r15
	movq	_PF_CONFIG_NAME@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ucl_iterate_object
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ucl_object_key
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	callq	_find_pf_device
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_asprintf
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_13:
	movq	%r12, %rdi
	callq	_ucl_object_unref
	movq	%r14, %rdi
	callq	_ucl_parser_free
	movq	-48(%rbp), %rax
	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
	.asciz	"Could not allocate parser"

L_.str.1:                               ## @.str.1
	.asciz	"Could not open '%s' for reading"

L_.str.2:                               ## @.str.2
	.asciz	"Could not parse '%s': %s"

	.comm	_PF_CONFIG_NAME,4,2             ## @PF_CONFIG_NAME
L_.str.3:                               ## @.str.3
	.asciz	"Config file does not specify device"

L_.str.4:                               ## @.str.4
	.asciz	"/dev/iov/%s"

L_.str.5:                               ## @.str.5
	.asciz	"Could not allocate memory for device"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_device                    ; -- Begin function find_device
	.p2align	2
_find_device:                           ; @find_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	xzr, [sp, #24]
	mov	w0, #0
	bl	_ucl_parser_new
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_ucl_parser_add_file
	cbnz	w0, LBB0_4
; %bb.3:
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	mov	x0, x19
	bl	_ucl_parser_get_error
	cbz	x0, LBB0_6
; %bb.5:
	stp	x20, x0, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	mov	x0, x19
	bl	_ucl_parser_get_object
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh6:
	adrp	x22, _PF_CONFIG_NAME@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PF_CONFIG_NAME@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #1
	bl	_ucl_iterate_object
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	bl	_ucl_object_key
	ldr	w1, [x22]
	bl	_strcasecmp
	cbnz	x0, LBB0_7
; %bb.9:
	mov	x0, x21
	bl	_find_pf_device
	mov	x2, x0
	cbnz	x0, LBB0_11
LBB0_10:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	mov	x2, #0
LBB0_11:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #24
	bl	_asprintf
	tbz	w0, #31, LBB0_13
; %bb.12:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_13:
	mov	x0, x20
	bl	_ucl_object_unref
	mov	x0, x19
	bl	_ucl_parser_free
	ldr	x0, [sp, #24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate parser"

l_.str.1:                               ; @.str.1
	.asciz	"Could not open '%s' for reading"

l_.str.2:                               ; @.str.2
	.asciz	"Could not parse '%s': %s"

	.comm	_PF_CONFIG_NAME,4,2             ; @PF_CONFIG_NAME
l_.str.3:                               ; @.str.3
	.asciz	"Config file does not specify device"

l_.str.4:                               ; @.str.4
	.asciz	"/dev/iov/%s"

l_.str.5:                               ; @.str.5
	.asciz	"Could not allocate memory for device"

.subsections_via_symbols
