	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	$0, -88(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r15
	leaq	LJTI0_0(%rip), %r13
	movq	_iwmbt_do_info@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, (%r12)
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-68(%rax), %ecx
	cmpl	$34, %ecx
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_iwmbt_do_debug@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %eax
	je	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_parse_ugen_name
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	jns	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_free
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strdup
	jmp	LBB0_1
LBB0_13:
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_usage
LBB0_15:
	leaq	-88(%rbp), %rdi
	callq	_libusb_init
	testl	%eax, %eax
	jne	LBB0_67
## %bb.16:
	movl	-80(%rbp), %esi
	movl	-72(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_iwmbt_debug
	movq	-88(%rbp), %rdi
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rdx
	callq	_iwmbt_find_device
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_libusb_open
	testl	%eax, %eax
	je	LBB0_33
## %bb.18:
	leaq	L_.str.4(%rip), %rdi
LBB0_19:
	xorl	%r13d, %r13d
	movl	%eax, %esi
LBB0_20:
	xorl	%eax, %eax
	callq	_iwmbt_err
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_iwmbt_err
LBB0_22:
	movl	$1, %r15d
LBB0_23:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_libusb_close
LBB0_25:
	testq	%r14, %r14
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_libusb_unref_device
LBB0_27:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_libusb_exit
LBB0_29:
	testb	%r13b, %r13b
	je	LBB0_31
## %bb.30:
	leaq	L_.str.22(%rip), %rdi
	callq	_iwmbt_info
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str.23(%rip), %rdi
	xorl	%eax, %eax
	callq	_iwmbt_err
LBB0_32:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_libusb_kernel_driver_active
	testl	%eax, %eax
	js	LBB0_36
## %bb.34:
	je	LBB0_37
## %bb.35:
	leaq	L_.str.6(%rip), %rdi
	callq	_iwmbt_info
	xorl	%r15d, %r15d
	movb	$1, %r13b
	jmp	LBB0_23
LBB0_36:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_19
LBB0_37:
	movq	-48(%rbp), %rdi
	leaq	_main.ver(%rip), %rsi
	callq	_iwmbt_get_version
	testl	%eax, %eax
	js	LBB0_44
## %bb.38:
	leaq	_main.ver(%rip), %rdi
	callq	_iwmbt_dump_version
	movl	_main.ver(%rip), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_iwmbt_debug
	movl	_main.ver(%rip), %esi
	cmpl	$6, %esi
	je	LBB0_45
## %bb.39:
	cmpl	$35, %esi
	jne	LBB0_48
## %bb.40:
	leaq	L_.str.6(%rip), %rdi
LBB0_41:
	callq	_iwmbt_info
LBB0_42:
	movq	-48(%rbp), %rdi
	callq	_libusb_reset_device
	movb	$1, %r13b
	testl	%eax, %eax
	je	LBB0_50
## %bb.43:
	movl	%eax, %edi
	callq	_libusb_strerror
	leaq	L_.str.21(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_iwmbt_err
	jmp	LBB0_23
LBB0_44:
	leaq	L_.str.7(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_iwmbt_debug
	jmp	LBB0_22
LBB0_45:
	movq	-48(%rbp), %rdi
	leaq	_main.params(%rip), %rsi
	callq	_iwmbt_get_boot_params
	testl	%eax, %eax
	js	LBB0_51
## %bb.46:
	leaq	_main.params(%rip), %rdi
	callq	_iwmbt_dump_boot_params
	movl	_main.params(%rip), %esi
	testl	%esi, %esi
	je	LBB0_52
## %bb.47:
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_49
LBB0_48:
	leaq	L_.str.9(%rip), %rdi
LBB0_49:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_50:
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_51:
	leaq	L_.str.10(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_iwmbt_debug
	jmp	LBB0_22
LBB0_52:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	jne	LBB0_54
## %bb.53:
	movq	__DEFAULT_IWMBT_FIRMWARE_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strdup
	movq	%rax, %rdx
LBB0_54:
	leaq	_main.ver(%rip), %rdi
	leaq	_main.params(%rip), %rsi
	leaq	L_.str.12(%rip), %rcx
	movq	%rdx, %r12
	callq	_iwmbt_get_fwname
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_65
## %bb.55:
	movq	%rax, %rbx
	leaq	L_.str.13(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_iwmbt_debug
	movq	-48(%rbp), %rdi
	leaq	-92(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_iwmbt_init_firmware
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_free
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_23
## %bb.56:
	leaq	L_.str.14(%rip), %rdi
	callq	_iwmbt_info
	movq	-48(%rbp), %rdi
	movl	-92(%rbp), %esi
	callq	_iwmbt_intel_reset
	testl	%eax, %eax
	js	LBB0_66
## %bb.57:
	leaq	L_.str.16(%rip), %rdi
	callq	_iwmbt_info
	movq	-48(%rbp), %rdi
	leaq	_main.ver(%rip), %rsi
	callq	_iwmbt_get_version
	testl	%eax, %eax
	jne	LBB0_59
## %bb.58:
	leaq	_main.ver(%rip), %rdi
	callq	_iwmbt_dump_version
LBB0_59:
	leaq	_main.ver(%rip), %rdi
	leaq	_main.params(%rip), %rsi
	leaq	L_.str.17(%rip), %rcx
	movq	%r12, %rdx
	callq	_iwmbt_get_fwname
	movq	%rax, %rbx
	leaq	L_.str.18(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_iwmbt_debug
	testq	%rbx, %rbx
	je	LBB0_63
## %bb.60:
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_iwmbt_init_ddc
	testl	%eax, %eax
	jne	LBB0_62
## %bb.61:
	leaq	L_.str.19(%rip), %rdi
	callq	_iwmbt_info
LBB0_62:
	movq	%rbx, %rdi
	callq	_free
LBB0_63:
	movq	-48(%rbp), %rdi
	callq	_iwmbt_set_event_mask
	testl	%eax, %eax
	jne	LBB0_42
## %bb.64:
	leaq	L_.str.20(%rip), %rdi
	jmp	LBB0_41
LBB0_65:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_66:
	leaq	L_.str.15(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_iwmbt_debug
	jmp	LBB0_23
LBB0_67:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_iwmbt_err
	movl	$127, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_main.ver,4,2    ## @main.ver
.zerofill __DATA,__bss,_main.params,4,2 ## @main.params
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dd:f:hIm:p:v:"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_iwmbt_do_debug,4,2             ## @iwmbt_do_debug
	.comm	_iwmbt_do_info,4,2              ## @iwmbt_do_info
L_.str.1:                               ## @.str.1
	.asciz	"libusb_init failed: code %d"

L_.str.2:                               ## @.str.2
	.asciz	"opening dev %d.%d"

L_.str.3:                               ## @.str.3
	.asciz	"device not found"

L_.str.4:                               ## @.str.4
	.asciz	"libusb_open() failed: code %d"

L_.str.5:                               ## @.str.5
	.asciz	"libusb_kernel_driver_active() failed: code %d"

L_.str.6:                               ## @.str.6
	.asciz	"Firmware has already been downloaded"

L_.str.7:                               ## @.str.7
	.asciz	"iwmbt_get_version() failedL code %d"

L_.str.8:                               ## @.str.8
	.asciz	"fw_variant=0x%02x"

L_.str.9:                               ## @.str.9
	.asciz	"unknown fw_variant 0x%02x"

L_.str.10:                              ## @.str.10
	.asciz	"iwmbt_get_boot_params() failed!"

L_.str.11:                              ## @.str.11
	.asciz	"Unsupported Intel firmware loading method (%u)"

	.comm	__DEFAULT_IWMBT_FIRMWARE_PATH,4,2 ## @_DEFAULT_IWMBT_FIRMWARE_PATH
L_.str.12:                              ## @.str.12
	.asciz	"sfi"

L_.str.13:                              ## @.str.13
	.asciz	"firmware_path = %s"

L_.str.14:                              ## @.str.14
	.asciz	"Firmware download complete"

L_.str.15:                              ## @.str.15
	.asciz	"iwmbt_intel_reset() failed!"

L_.str.16:                              ## @.str.16
	.asciz	"Firmware operational"

L_.str.17:                              ## @.str.17
	.asciz	"ddc"

L_.str.18:                              ## @.str.18
	.asciz	"ddc_path = %s"

L_.str.19:                              ## @.str.19
	.asciz	"DDC download complete"

L_.str.20:                              ## @.str.20
	.asciz	"Intel Event Mask is set"

L_.str.21:                              ## @.str.21
	.asciz	"libusb_reset_device() failed: %s"

L_.str.22:                              ## @.str.22
	.asciz	"Firmware download is succesful!"

L_.str.23:                              ## @.str.23
	.asciz	"Firmware download failed!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x21, x0
	mov	x20, #0
	stp	xzr, xzr, [sp, #48]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	stp	xzr, xzr, [sp, #24]
Lloh2:
	adrp	x23, lJTI0_0@PAGE
Lloh3:
	add	x23, x23, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x24, _iwmbt_do_debug@GOTPAGE
Lloh5:
	ldr	x24, [x24, _iwmbt_do_debug@GOTPAGEOFF]
	mov	w25, #1
Lloh6:
	adrp	x26, _iwmbt_do_info@GOTPAGE
Lloh7:
	ldr	x26, [x26, _iwmbt_do_info@GOTPAGEOFF]
	mov	w28, #1
Lloh8:
	adrp	x27, _optarg@GOTPAGE
Lloh9:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x26]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #68
	cmp	w8, #34
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x24]
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #32
	add	x2, sp, #24
	bl	_parse_ugen_name
	mov	w28, #0
	tbz	w0, #31, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	mov	w28, #0
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x20, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_free
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_strdup
	mov	x20, x0
	b	LBB0_2
LBB0_12:
	tbz	w28, #0, LBB0_14
; %bb.13:
	bl	_usage
LBB0_14:
	add	x0, sp, #56
	bl	_libusb_init
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_63
; %bb.15:
	ldp	x9, x8, [sp, #24]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_iwmbt_debug
	ldr	x0, [sp, #56]
	ldp	x2, x1, [sp, #24]
	bl	_iwmbt_find_device
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.16:
	add	x1, sp, #48
	mov	x0, x19
	bl	_libusb_open
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_31
; %bb.17:
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_19:
	bl	_iwmbt_err
LBB0_20:
	mov	w21, #0
LBB0_21:
	mov	w20, #1
	ldr	x0, [sp, #48]
	cbz	x0, LBB0_23
LBB0_22:
	bl	_libusb_close
LBB0_23:
	cbz	x19, LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_libusb_unref_device
LBB0_25:
	ldr	x0, [sp, #56]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_libusb_exit
LBB0_27:
	cbz	w21, LBB0_29
; %bb.28:
Lloh16:
	adrp	x0, l_.str.22@PAGE
Lloh17:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_iwmbt_info
	b	LBB0_30
LBB0_29:
Lloh18:
	adrp	x0, l_.str.23@PAGE
Lloh19:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_iwmbt_err
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_31:
	ldr	x0, [sp, #48]
	mov	w1, #0
	bl	_libusb_kernel_driver_active
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_35
; %bb.32:
	cbz	w0, LBB0_36
; %bb.33:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_iwmbt_info
LBB0_34:
	mov	w20, #0
	mov	w21, #1
	ldr	x0, [sp, #48]
	cbnz	x0, LBB0_22
	b	LBB0_23
LBB0_35:
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_36:
	ldr	x0, [sp, #48]
Lloh24:
	adrp	x21, _main.ver@PAGE
Lloh25:
	add	x21, x21, _main.ver@PAGEOFF
	mov	x1, x21
	bl	_iwmbt_get_version
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_43
; %bb.37:
	mov	x0, x21
	bl	_iwmbt_dump_version
	ldr	w8, [x21]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.8@PAGE
Lloh27:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_iwmbt_debug
	ldr	w8, [x21]
	cmp	w8, #6
	b.eq	LBB0_44
; %bb.38:
	cmp	w8, #35
	b.ne	LBB0_47
; %bb.39:
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_40:
	bl	_iwmbt_info
LBB0_41:
	ldr	x0, [sp, #48]
	bl	_libusb_reset_device
	cbz	w0, LBB0_34
; %bb.42:
	bl	_libusb_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x0, l_.str.21@PAGE
Lloh31:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_iwmbt_err
	b	LBB0_34
LBB0_43:
	str	x0, [sp]
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_iwmbt_debug
	b	LBB0_20
LBB0_44:
	ldr	x0, [sp, #48]
Lloh34:
	adrp	x21, _main.params@PAGE
Lloh35:
	add	x21, x21, _main.params@PAGEOFF
	mov	x1, x21
	bl	_iwmbt_get_boot_params
	tbnz	w0, #31, LBB0_48
; %bb.45:
	mov	x0, x21
	bl	_iwmbt_dump_boot_params
	ldr	w8, [x21]
	cbz	w8, LBB0_49
; %bb.46:
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.11@PAGE
Lloh37:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_19
LBB0_47:
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.9@PAGE
Lloh39:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_48:
Lloh40:
	adrp	x0, l_.str.10@PAGE
Lloh41:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_iwmbt_debug
	b	LBB0_20
LBB0_49:
	cbnz	x20, LBB0_51
; %bb.50:
Lloh42:
	adrp	x8, __DEFAULT_IWMBT_FIRMWARE_PATH@GOTPAGE
Lloh43:
	ldr	x8, [x8, __DEFAULT_IWMBT_FIRMWARE_PATH@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_strdup
	mov	x20, x0
LBB0_51:
Lloh45:
	adrp	x0, _main.ver@PAGE
Lloh46:
	add	x0, x0, _main.ver@PAGEOFF
Lloh47:
	adrp	x1, _main.params@PAGE
Lloh48:
	add	x1, x1, _main.params@PAGEOFF
Lloh49:
	adrp	x3, l_.str.12@PAGE
Lloh50:
	add	x3, x3, l_.str.12@PAGEOFF
	mov	x2, x20
	bl	_iwmbt_get_fwname
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.52:
	str	x21, [sp]
Lloh51:
	adrp	x0, l_.str.13@PAGE
Lloh52:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_iwmbt_debug
	ldr	x0, [sp, #48]
	add	x2, sp, #44
	mov	x1, x21
	bl	_iwmbt_init_firmware
	mov	x22, x0
	mov	x0, x21
	bl	_free
	tbnz	w22, #31, LBB0_20
; %bb.53:
Lloh53:
	adrp	x0, l_.str.14@PAGE
Lloh54:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_iwmbt_info
	ldr	x0, [sp, #48]
	ldr	w1, [sp, #44]
	bl	_iwmbt_intel_reset
	tbnz	w0, #31, LBB0_62
; %bb.54:
Lloh55:
	adrp	x0, l_.str.16@PAGE
Lloh56:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_iwmbt_info
	ldr	x0, [sp, #48]
Lloh57:
	adrp	x1, _main.ver@PAGE
Lloh58:
	add	x1, x1, _main.ver@PAGEOFF
	bl	_iwmbt_get_version
	cbnz	w0, LBB0_56
; %bb.55:
Lloh59:
	adrp	x0, _main.ver@PAGE
Lloh60:
	add	x0, x0, _main.ver@PAGEOFF
	bl	_iwmbt_dump_version
LBB0_56:
Lloh61:
	adrp	x0, _main.ver@PAGE
Lloh62:
	add	x0, x0, _main.ver@PAGEOFF
Lloh63:
	adrp	x1, _main.params@PAGE
Lloh64:
	add	x1, x1, _main.params@PAGEOFF
Lloh65:
	adrp	x3, l_.str.17@PAGE
Lloh66:
	add	x3, x3, l_.str.17@PAGEOFF
	mov	x2, x20
	bl	_iwmbt_get_fwname
	mov	x20, x0
	str	x0, [sp]
Lloh67:
	adrp	x0, l_.str.18@PAGE
Lloh68:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_iwmbt_debug
	cbz	x20, LBB0_60
; %bb.57:
	ldr	x0, [sp, #48]
	mov	x1, x20
	bl	_iwmbt_init_ddc
	cbnz	w0, LBB0_59
; %bb.58:
Lloh69:
	adrp	x0, l_.str.19@PAGE
Lloh70:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_iwmbt_info
LBB0_59:
	mov	x0, x20
	bl	_free
LBB0_60:
	ldr	x0, [sp, #48]
	bl	_iwmbt_set_event_mask
	cbnz	w0, LBB0_41
; %bb.61:
Lloh71:
	adrp	x0, l_.str.20@PAGE
Lloh72:
	add	x0, x0, l_.str.20@PAGEOFF
	b	LBB0_40
LBB0_62:
Lloh73:
	adrp	x0, l_.str.15@PAGE
Lloh74:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_iwmbt_debug
	b	LBB0_20
LBB0_63:
	str	x0, [sp]
Lloh75:
	adrp	x0, l_.str.1@PAGE
Lloh76:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iwmbt_err
	mov	w0, #127
	bl	_exit
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_main.ver,4,2    ; @main.ver
.zerofill __DATA,__bss,_main.params,4,2 ; @main.params
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dd:f:hIm:p:v:"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_iwmbt_do_debug,4,2             ; @iwmbt_do_debug
	.comm	_iwmbt_do_info,4,2              ; @iwmbt_do_info
l_.str.1:                               ; @.str.1
	.asciz	"libusb_init failed: code %d"

l_.str.2:                               ; @.str.2
	.asciz	"opening dev %d.%d"

l_.str.3:                               ; @.str.3
	.asciz	"device not found"

l_.str.4:                               ; @.str.4
	.asciz	"libusb_open() failed: code %d"

l_.str.5:                               ; @.str.5
	.asciz	"libusb_kernel_driver_active() failed: code %d"

l_.str.6:                               ; @.str.6
	.asciz	"Firmware has already been downloaded"

l_.str.7:                               ; @.str.7
	.asciz	"iwmbt_get_version() failedL code %d"

l_.str.8:                               ; @.str.8
	.asciz	"fw_variant=0x%02x"

l_.str.9:                               ; @.str.9
	.asciz	"unknown fw_variant 0x%02x"

l_.str.10:                              ; @.str.10
	.asciz	"iwmbt_get_boot_params() failed!"

l_.str.11:                              ; @.str.11
	.asciz	"Unsupported Intel firmware loading method (%u)"

	.comm	__DEFAULT_IWMBT_FIRMWARE_PATH,4,2 ; @_DEFAULT_IWMBT_FIRMWARE_PATH
l_.str.12:                              ; @.str.12
	.asciz	"sfi"

l_.str.13:                              ; @.str.13
	.asciz	"firmware_path = %s"

l_.str.14:                              ; @.str.14
	.asciz	"Firmware download complete"

l_.str.15:                              ; @.str.15
	.asciz	"iwmbt_intel_reset() failed!"

l_.str.16:                              ; @.str.16
	.asciz	"Firmware operational"

l_.str.17:                              ; @.str.17
	.asciz	"ddc"

l_.str.18:                              ; @.str.18
	.asciz	"ddc_path = %s"

l_.str.19:                              ; @.str.19
	.asciz	"DDC download complete"

l_.str.20:                              ; @.str.20
	.asciz	"Intel Event Mask is set"

l_.str.21:                              ; @.str.21
	.asciz	"libusb_reset_device() failed: %s"

l_.str.22:                              ; @.str.22
	.asciz	"Firmware download is succesful!"

l_.str.23:                              ; @.str.23
	.asciz	"Firmware download failed!"

.subsections_via_symbols
