	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patrol_config
_patrol_config:                         ## @patrol_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_32
LBB0_2:
	movq	%rsi, %r15
	movl	%edi, %r13d
	movq	8(%rsi), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_31
LBB0_6:
	movq	_MFI_PR_OPMODE_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpl	$3, %r13d
	jb	LBB0_13
## %bb.7:
	movq	16(%r15), %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_27
## %bb.9:
	movq	16(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_31
LBB0_10:
	movq	_MFI_PR_OPMODE_MANUAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_MFI_PR_OPMODE_DISABLED@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %r14
LBB0_13:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_14:
	movq	_mfi_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mfi_open
	testl	%eax, %eax
	js	LBB0_17
## %bb.15:
	movl	%eax, %r15d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	leaq	-96(%rbp), %rsi
	movl	%eax, %edi
	callq	_patrol_get_props
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.8(%rip), %rdi
	callq	_warn
	jmp	LBB0_34
LBB0_18:
	movq	%r14, -80(%rbp)
	cmpl	$3, %r13d
	jb	LBB0_23
## %bb.19:
	movq	_MFI_PR_OPMODE_AUTO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_23
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	cmpl	$4, %r13d
	jb	LBB0_23
## %bb.21:
	leaq	-52(%rbp), %rdi
	callq	_time
	leaq	-72(%rbp), %rsi
	movl	%r15d, %edi
	callq	_mfi_get_time
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.22:
	addq	%rsi, %r12
	movq	%r12, -96(%rbp)
	movl	-52(%rbp), %edi
	movq	%r12, %rdx
	callq	_adapter_time
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
LBB0_23:
	movq	_MFI_DCMD_PR_SET_PROPERTIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %rdx
	movl	%r15d, %edi
	movl	$24, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfi_dcmd_command
	testq	%rax, %rax
	jns	LBB0_25
## %bb.24:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.10(%rip), %rdi
	callq	_warn
LBB0_25:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_34
LBB0_26:
	movl	$4294967295, %r12d              ## imm = 0xFFFFFFFF
LBB0_27:
	cmpl	$4, %r13d
	jb	LBB0_35
## %bb.28:
	movq	24(%r15), %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_30
## %bb.29:
	testq	%rbx, %rbx
	jns	LBB0_14
LBB0_30:
	movq	24(%r15), %rsi
	leaq	L_.str.4(%rip), %rdi
LBB0_31:
	xorl	%eax, %eax
	callq	_warnx
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %ebx
LBB0_34:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_36:
	movl	%r15d, %edi
	callq	_close
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"patrol: command required"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"auto"

	.comm	_MFI_PR_OPMODE_AUTO,8,3         ## @MFI_PR_OPMODE_AUTO
L_.str.2:                               ## @.str.2
	.asciz	"continuously"

L_.str.3:                               ## @.str.3
	.asciz	"patrol: Invalid interval %s"

L_.str.4:                               ## @.str.4
	.asciz	"patrol: Invalid start time %s"

L_.str.5:                               ## @.str.5
	.asciz	"manual"

	.comm	_MFI_PR_OPMODE_MANUAL,8,3       ## @MFI_PR_OPMODE_MANUAL
L_.str.6:                               ## @.str.6
	.asciz	"disable"

	.comm	_MFI_PR_OPMODE_DISABLED,8,3     ## @MFI_PR_OPMODE_DISABLED
L_.str.7:                               ## @.str.7
	.asciz	"patrol: Invalid command %s"

	.comm	_mfi_unit,4,2                   ## @mfi_unit
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,4,2                      ## @errno
L_.str.8:                               ## @.str.8
	.asciz	"mfi_open"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.9:                               ## @.str.9
	.asciz	"Starting next patrol read at %s"

	.comm	_MFI_DCMD_PR_SET_PROPERTIES,4,2 ## @MFI_DCMD_PR_SET_PROPERTIES
L_.str.10:                              ## @.str.10
	.asciz	"Failed to set patrol read properties"

	.no_dead_strip	_patrol_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patrol_config
_patrol_config:                         ; @patrol_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cmp	w0, #1
	b.gt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_warnx
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w23, [x8]
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_9
; %bb.6:
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_13
; %bb.7:
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_15
; %bb.8:
	str	x20, [sp]
Lloh10:
	adrp	x0, l_.str.7@PAGE
Lloh11:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_2
LBB0_9:
Lloh12:
	adrp	x8, _MFI_PR_OPMODE_AUTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MFI_PR_OPMODE_AUTO@GOTPAGEOFF]
Lloh14:
	ldr	x24, [x8]
	cmp	w19, #3
	b.lo	LBB0_14
; %bb.10:
	ldr	x20, [x21, #16]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_29
; %bb.11:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #16]
	ldrb	w8, [x8]
	cbz	w8, LBB0_34
; %bb.12:
	ldr	x8, [x21, #16]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_13:
	mov	x22, #0
	mov	x20, #0
Lloh19:
	adrp	x8, _MFI_PR_OPMODE_MANUAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MFI_PR_OPMODE_MANUAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	mov	x22, #0
	mov	x20, #0
	b	LBB0_17
LBB0_15:
	mov	x22, #0
	mov	x20, #0
Lloh21:
	adrp	x8, _MFI_PR_OPMODE_DISABLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MFI_PR_OPMODE_DISABLED@GOTPAGEOFF]
LBB0_16:
	ldr	x24, [x8]
LBB0_17:
Lloh23:
	adrp	x8, _mfi_unit@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mfi_unit@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_mfi_open
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x21, x0
	add	x1, sp, #40
	bl	_patrol_get_props
	cbz	w0, LBB0_22
; %bb.19:
	mov	x23, x0
LBB0_20:
	mov	x0, x21
	bl	_close
	b	LBB0_4
LBB0_21:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warn
	b	LBB0_4
LBB0_22:
	str	x24, [sp, #56]
	cmp	w19, #3
	b.lo	LBB0_27
; %bb.23:
Lloh34:
	adrp	x8, _MFI_PR_OPMODE_AUTO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MFI_PR_OPMODE_AUTO@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_27
; %bb.24:
	str	x20, [sp, #48]
	cmp	w19, #4
	b.lo	LBB0_27
; %bb.25:
	add	x0, sp, #36
	bl	_time
	add	x1, sp, #24
	mov	x0, x21
	bl	_mfi_get_time
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_36
; %bb.26:
	add	x2, x1, x22
	str	x2, [sp, #40]
	ldr	w0, [sp, #36]
	bl	_adapter_time
	mov	x1, x0
Lloh37:
	adrp	x0, l_.str.9@PAGE
Lloh38:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
LBB0_27:
Lloh39:
	adrp	x8, _MFI_DCMD_PR_SET_PROPERTIES@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MFI_DCMD_PR_SET_PROPERTIES@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x21
	mov	w3, #24
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfi_dcmd_command
	tbnz	x0, #63, LBB0_33
; %bb.28:
	mov	x0, x21
	bl	_close
	mov	w23, #0
	b	LBB0_4
LBB0_29:
	mov	w20, #-1
	cmp	w19, #4
	b.lo	LBB0_35
LBB0_30:
	ldr	x0, [x21, #24]
	add	x1, sp, #16
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #16]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_32
; %bb.31:
	mov	x22, x0
	tbz	x0, #63, LBB0_17
LBB0_32:
	ldr	x8, [x21, #24]
	str	x8, [sp]
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_33:
Lloh44:
	adrp	x8, _errno@GOTPAGE
Lloh45:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
Lloh47:
	adrp	x0, l_.str.10@PAGE
Lloh48:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_warn
	b	LBB0_20
LBB0_34:
	mov	x20, x0
	cmp	w19, #4
	b.hs	LBB0_30
LBB0_35:
	mov	x22, #0
	b	LBB0_17
LBB0_36:
	mov	x0, x21
	bl	_close
Lloh49:
	adrp	x8, _ENXIO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"patrol: command required"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"auto"

	.comm	_MFI_PR_OPMODE_AUTO,8,3         ; @MFI_PR_OPMODE_AUTO
l_.str.2:                               ; @.str.2
	.asciz	"continuously"

l_.str.3:                               ; @.str.3
	.asciz	"patrol: Invalid interval %s"

l_.str.4:                               ; @.str.4
	.asciz	"patrol: Invalid start time %s"

l_.str.5:                               ; @.str.5
	.asciz	"manual"

	.comm	_MFI_PR_OPMODE_MANUAL,8,3       ; @MFI_PR_OPMODE_MANUAL
l_.str.6:                               ; @.str.6
	.asciz	"disable"

	.comm	_MFI_PR_OPMODE_DISABLED,8,3     ; @MFI_PR_OPMODE_DISABLED
l_.str.7:                               ; @.str.7
	.asciz	"patrol: Invalid command %s"

	.comm	_mfi_unit,4,2                   ; @mfi_unit
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,4,2                      ; @errno
l_.str.8:                               ; @.str.8
	.asciz	"mfi_open"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.9:                               ; @.str.9
	.asciz	"Starting next patrol read at %s"

	.comm	_MFI_DCMD_PR_SET_PROPERTIES,4,2 ; @MFI_DCMD_PR_SET_PROPERTIES
l_.str.10:                              ; @.str.10
	.asciz	"Failed to set patrol read properties"

	.no_dead_strip	_patrol_config
.subsections_via_symbols
