	.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, %r12
	movl	%edi, %r14d
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	L_.str(%rip), %rbx
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_numeric_bdaddr@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$97, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$110, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_bt_aton
	testl	%eax, %eax
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	callq	_bt_gethostbyname
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_h_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hstrerror
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	leaq	-44(%rbp), %r15
	movl	%eax, %ecx
	callq	_errx
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_optarg@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_1
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%r12,%rbx,8), %r15
	cmpq	$0, (%r12,%rbx,8)
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_usage
LBB0_12:
	subl	%ebx, %r14d
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_do_l2cap_command
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a:nh"

	.comm	_optarg,4,2                     ## @optarg
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_h_errno,4,2                    ## @h_errno
	.comm	_numeric_bdaddr,4,2             ## @numeric_bdaddr
	.comm	_optind,8,3                     ## @optind
.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _optarg@GOTPAGE
Lloh3:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh4:
	adrp	x26, _h_errno@GOTPAGE
Lloh5:
	ldr	x26, [x26, _h_errno@GOTPAGEOFF]
	mov	w27, #1
Lloh6:
	adrp	x28, _numeric_bdaddr@GOTPAGE
Lloh7:
	ldr	x28, [x28, _numeric_bdaddr@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w27, [x28]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_getopt
	cmp	w0, #97
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	add	x1, sp, #12
	bl	_bt_aton
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_bt_gethostbyname
	mov	x23, x0
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w24, [x25]
	ldr	w0, [x26]
	bl	_hstrerror
	mov	x3, x0
	mov	w0, #1
	mov	x1, x22
	mov	x2, x24
	bl	_errx
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	b	LBB0_2
LBB0_10:
Lloh10:
	adrp	x8, _optind@GOTPAGE
Lloh11:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
	add	x20, x20, x21, lsl #3
	ldr	x8, [x20]
	cbnz	x8, LBB0_12
; %bb.11:
	bl	_usage
LBB0_12:
	sub	w1, w19, w21
	add	x0, sp, #12
	mov	x2, x20
	bl	_do_l2cap_command
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a:nh"

	.comm	_optarg,4,2                     ; @optarg
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_h_errno,4,2                    ; @h_errno
	.comm	_numeric_bdaddr,4,2             ; @numeric_bdaddr
	.comm	_optind,8,3                     ; @optind
.subsections_via_symbols
