	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_bcmfw_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_getopt
	cmpl	$108, %eax
	jg	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$102, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$109, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$110, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_10:
	testq	%r12, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	testq	%r15, %r15
	jne	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_bcmfw_usage
LBB0_14:
	movq	_BCMFW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOG_NDELAY@GOTPCREL(%rip), %rax
	movq	_LOG_PERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_LOG_PID@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_LOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_openlog
	movq	%r12, %rdi
	callq	_bcmfw_check_device
	testq	%rax, %rax
	js	LBB0_17
## %bb.15:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_bcmfw_load_firmware
	testq	%rax, %rax
	js	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_closelog
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f:hn:m:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_BCMFW,4,2                      ## @BCMFW
	.comm	_LOG_NDELAY,4,2                 ## @LOG_NDELAY
	.comm	_LOG_PERROR,4,2                 ## @LOG_PERROR
	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_LOG_USER,4,2                   ## @LOG_USER
.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x23, x0
	mov	x20, #0
	mov	x19, #0
	mov	x21, #0
Lloh0:
	adrp	x25, _optarg@GOTPAGE
Lloh1:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_bcmfw_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_getopt
	cmp	w0, #108
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #102
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [x25]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #109
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x25]
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x25]
	b	LBB0_2
LBB0_10:
	cbz	x21, LBB0_13
; %bb.11:
	cbz	x20, LBB0_13
; %bb.12:
	cbnz	x19, LBB0_14
LBB0_13:
	bl	_bcmfw_usage
LBB0_14:
Lloh4:
	adrp	x8, _BCMFW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BCMFW@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _LOG_NDELAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_NDELAY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _LOG_PERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LOG_PERROR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _LOG_PID@GOTPAGE
Lloh14:
	ldr	x10, [x10, _LOG_PID@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh15:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh16:
	adrp	x8, _LOG_USER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_USER@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_openlog
	mov	x0, x21
	bl	_bcmfw_check_device
	tbnz	x0, #63, LBB0_17
; %bb.15:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bcmfw_load_firmware
	tbnz	x0, #63, LBB0_17
; %bb.16:
	bl	_closelog
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f:hn:m:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_BCMFW,4,2                      ; @BCMFW
	.comm	_LOG_NDELAY,4,2                 ; @LOG_NDELAY
	.comm	_LOG_PERROR,4,2                 ; @LOG_PERROR
	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_LOG_USER,4,2                   ; @LOG_USER
.subsections_via_symbols
