	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_config                    ## -- Begin function read_config
	.p2align	4, 0x90
_read_config:                           ## @read_config
	.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
	movq	_apmd_configfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	_yyin@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	xorl	%eax, %eax
	callq	_yyparse
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	(%rbx), %rdi
	callq	_fclose
	movq	_EVENT_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	_events@GOTPCREL(%rip), %r13
	movq	_apmctl_fd@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, -44(%rbp)
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_apmd_configfile,4,2            ## @apmd_configfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_yyin,8,3                       ## @yyin
L_.str.1:                               ## @.str.1
	.asciz	"cannot open config file"

L_.str.2:                               ## @.str.2
	.asciz	"cannot parse config file"

	.comm	_EVENT_MAX,4,2                  ## @EVENT_MAX
	.comm	_events,8,3                     ## @events
	.comm	_apmctl_fd,4,2                  ## @apmctl_fd
L_.str.3:                               ## @.str.3
	.asciz	"cannot enable event 0x%x"

	.comm	_debug_level,4,2                ## @debug_level
	.comm	_yydebug,4,2                    ## @yydebug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_config                    ; -- Begin function read_config
	.p2align	2
_read_config:                           ; @read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _apmd_configfile@GOTPAGE
Lloh1:
	ldr	x8, [x8, _apmd_configfile@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
Lloh5:
	adrp	x19, _yyin@GOTPAGE
Lloh6:
	ldr	x19, [x19, _yyin@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.1:
	bl	_yyparse
	cbz	x0, LBB0_3
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	x0, [x19]
	bl	_fclose
Lloh9:
	adrp	x20, _EVENT_MAX@GOTPAGE
Lloh10:
	ldr	x20, [x20, _EVENT_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x21, #0
Lloh11:
	adrp	x22, _events@GOTPAGE
Lloh12:
	ldr	x22, [x22, _events@GOTPAGEOFF]
Lloh13:
	adrp	x23, _apmctl_fd@GOTPAGE
Lloh14:
	ldr	x23, [x23, _apmctl_fd@GOTPAGEOFF]
Lloh15:
	adrp	x19, l_.str.3@PAGE
Lloh16:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x9, [x9, x21, lsl #3]
	cbz	x9, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w21, [sp, #12]
	ldr	w0, [x23]
	add	x1, sp, #12
	mov	w2, #4
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x21, [sp]
	mov	w0, #1
	mov	x1, x19
	bl	_err
	b	LBB0_5
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	bl	_yyparse
	cbnz	x0, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_apmd_configfile,4,2            ; @apmd_configfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_yyin,8,3                       ; @yyin
l_.str.1:                               ; @.str.1
	.asciz	"cannot open config file"

l_.str.2:                               ; @.str.2
	.asciz	"cannot parse config file"

	.comm	_EVENT_MAX,4,2                  ; @EVENT_MAX
	.comm	_events,8,3                     ; @events
	.comm	_apmctl_fd,4,2                  ; @apmctl_fd
l_.str.3:                               ; @.str.3
	.asciz	"cannot enable event 0x%x"

	.comm	_debug_level,4,2                ; @debug_level
	.comm	_yydebug,4,2                    ; @yydebug
.subsections_via_symbols
