	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibdiag_process_opts            ## -- Begin function ibdiag_process_opts
	.p2align	4, 0x90
_ibdiag_process_opts:                   ## @ibdiag_process_opts
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, -1088(%rbp)               ## 8-byte Spill
	movq	%rsi, %r15
	movl	%edi, -1076(%rbp)               ## 4-byte Spill
	movq	24(%rbp), %rax
	movq	16(%rbp), %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -48(%rbp)
	movq	(%rsi), %rdx
	movq	_prog_name@GOTPCREL(%rip), %rsi
	movq	%rdx, (%rsi)
	movq	_prog_args@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_prog_examples@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_long_opts@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	_opts_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_make_long_opts
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_IBDIAG_CONFIG_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_ibdiag_config
	movq	(%r12), %rdi
	leaq	-1072(%rbp), %r14
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_make_str_opts
	movq	(%r12), %rcx
	xorl	%r13d, %r13d
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_getopt_long
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.5:
	movl	%eax, %r14d
	movq	_optarg@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_long_opts@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%r13d, %r13d
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r15, %rsi
	leaq	-1072(%rbp), %rdx
	xorl	%r8d, %r8d
	callq	_getopt_long
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_opts_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_ibdiag_show_usage
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rdx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-1088(%rbp), %rdi               ## 8-byte Reload
	movl	%r14d, %esi
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rsi
	movl	%r14d, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	movq	%rdx, %rsi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_process_opt
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_ibdiag_show_usage
	jmp	LBB0_14
LBB0_3:
	movl	$-1, %r13d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_prog_name,8,3                  ## @prog_name
	.comm	_prog_args,8,3                  ## @prog_args
	.comm	_prog_examples,8,3              ## @prog_examples
	.comm	_long_opts,8,3                  ## @long_opts
	.comm	_opts_map,8,3                   ## @opts_map
	.comm	_IBDIAG_CONFIG_GENERAL,4,2      ## @IBDIAG_CONFIG_GENERAL
	.comm	_optarg,8,3                     ## @optarg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibdiag_process_opts            ; -- Begin function ibdiag_process_opts
	.p2align	2
_ibdiag_process_opts:                   ; @ibdiag_process_opts
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _prog_name@GOTPAGE
Lloh4:
	ldr	x9, [x9, _prog_name@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
Lloh6:
	adrp	x8, _prog_args@GOTPAGE
Lloh7:
	ldr	x8, [x8, _prog_args@GOTPAGEOFF]
Lloh8:
	str	x6, [x8]
Lloh9:
	adrp	x8, _prog_examples@GOTPAGE
Lloh10:
	ldr	x8, [x8, _prog_examples@GOTPAGEOFF]
Lloh11:
	str	x7, [x8]
Lloh12:
	adrp	x25, _long_opts@GOTPAGE
Lloh13:
	ldr	x25, [x25, _long_opts@GOTPAGEOFF]
	ldr	x0, [x25]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
Lloh14:
	adrp	x26, _opts_map@GOTPAGE
Lloh15:
	ldr	x26, [x26, _opts_map@GOTPAGEOFF]
	ldr	x2, [x26]
	mov	x0, x24
	mov	x1, x23
	bl	_make_long_opts
	str	x0, [x25]
	cbz	x0, LBB0_14
; %bb.3:
Lloh16:
	adrp	x8, _IBDIAG_CONFIG_GENERAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IBDIAG_CONFIG_GENERAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_read_ibdiag_config
	ldr	x0, [x25]
	add	x1, sp, #8
	mov	w2, #1024
	bl	_make_str_opts
	ldr	x3, [x25]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x4, #0
	bl	_getopt_long
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.4:
	mov	x23, x0
Lloh19:
	adrp	x24, _optarg@GOTPAGE
Lloh20:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x3, [x25]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x4, #0
	bl	_getopt_long
	mov	x23, x0
	cmn	w0, #1
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8, w23, sxtw #3]
	cbz	x8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x24]
	cbz	x19, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x23
	blr	x19
	cbz	w0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x24]
	mov	x0, x23
	bl	_process_opt
	cbnz	x0, LBB0_12
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ibdiag_show_usage
	ldr	x2, [x24]
	cbnz	x19, LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x2
	bl	_process_opt
	cbz	x0, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ibdiag_show_usage
	b	LBB0_5
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #1040
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_prog_name,8,3                  ; @prog_name
	.comm	_prog_args,8,3                  ; @prog_args
	.comm	_prog_examples,8,3              ; @prog_examples
	.comm	_long_opts,8,3                  ; @long_opts
	.comm	_opts_map,8,3                   ; @opts_map
	.comm	_IBDIAG_CONFIG_GENERAL,4,2      ; @IBDIAG_CONFIG_GENERAL
	.comm	_optarg,8,3                     ; @optarg
.subsections_via_symbols
