	.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, %r15
	movl	%edi, %r14d
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ATH_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_4:
	leaq	L_.str.2(%rip), %r13
	movq	_optarg@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$105, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %r12
	jmp	LBB0_5
LBB0_9:
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strncpy
	movq	_HAL_DIAG_REVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_state@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	$4, -80(%rbp)
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	movq	-88(%rbp), %rsi
	movl	$1, %edi
	callq	_err
LBB0_11:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_24
## %bb.12:
	leaq	(%r15,%rax,8), %r13
	incl	%r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rsi
	movq	(%r13), %rbx
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_regread
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_printf
	addq	$8, %r13
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	decl	%r14d
	cmpl	$1, %r14d
	jle	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	movq	(%r13), %rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r15d, %r15d
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_reglookup
	testq	%rax, %rax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rax), %r12
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	(%r13), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, %r12
	movq	(%r13), %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$0, (%rax)
	je	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%r15, %r15
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	leaq	-88(%rbp), %rbx
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_regwrite
	jmp	LBB0_23
LBB0_24:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

L_.str.1:                               ## @.str.1
	.asciz	"ATH"

	.comm	_ATH_DEFAULT,8,3                ## @ATH_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"i:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_HAL_DIAG_REVS,4,2              ## @HAL_DIAG_REVS
	.comm	_state,4,2                      ## @state
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
	.comm	_optind,8,3                     ## @optind
	.comm	_errno,8,3                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"invalid register \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"%s = %08x\n"

.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, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh10:
	adrp	x8, _ATH_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x22, x8, x0, eq
Lloh13:
	adrp	x23, l_.str.2@PAGE
Lloh14:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh15:
	adrp	x24, _optarg@GOTPAGE
Lloh16:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_usage
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #105
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x24]
	b	LBB0_4
LBB0_7:
	mov	x1, x22
	mov	w2, #8
	bl	_strncpy
Lloh17:
	adrp	x8, _HAL_DIAG_REVS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HAL_DIAG_REVS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh20:
	adrp	x8, _state@GOTPAGE
Lloh21:
	ldr	x8, [x8, _state@GOTPAGEOFF]
	str	x8, [sp, #32]
	mov	w8, #4
	str	w8, [sp, #24]
Lloh22:
	adrp	x8, _SIOCGATHDIAG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SIOCGATHDIAG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	x1, [sp, #16]
	mov	w0, #1
	bl	_err
LBB0_9:
Lloh25:
	adrp	x8, _optind@GOTPAGE
Lloh26:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	sub	w9, w21, w8
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.10:
	add	x24, x20, x8, lsl #3
	add	w25, w9, #1
Lloh28:
	adrp	x26, _errno@GOTPAGE
Lloh29:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh30:
	adrp	x20, l_.str.3@PAGE
Lloh31:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh32:
	adrp	x21, l_.str.4@PAGE
Lloh33:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x22, [x24], #8
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x23
	bl	_regread
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_printf
	sub	w25, w25, #1
	cmp	w25, #1
	b.le	LBB0_21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x24]
	mov	x0, x23
	mov	w1, #61
	bl	_strchr
	mov	x22, x0
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	strb	wzr, [x22], #1
	ldr	x23, [x24]
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_reglookup
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x23, [x0]
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x26]
	ldr	x0, [x24]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	mov	x23, x0
	ldr	x2, [x24]
	ldr	x8, [sp, #8]
	cmp	x2, x8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x8]
	cbz	w8, LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_errx
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	x22, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_strtoul
	mov	x3, x0
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x23
	bl	_regwrite
	b	LBB0_11
LBB0_21:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

l_.str.1:                               ; @.str.1
	.asciz	"ATH"

	.comm	_ATH_DEFAULT,8,3                ; @ATH_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"i:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_HAL_DIAG_REVS,4,2              ; @HAL_DIAG_REVS
	.comm	_state,4,2                      ; @state
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
	.comm	_optind,8,3                     ; @optind
	.comm	_errno,8,3                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"invalid register \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"%s = %08x\n"

.subsections_via_symbols
