	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_getpicker
_do_getpicker:                          ## @do_getpicker
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$1, %esi
	jne	LBB0_1
## %bb.2:
	movq	_changer_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHIOGPICKER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movq	_changer_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-20(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_getprogname
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_fprintf
	movl	$1, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no arguments expected"

	.comm	_changer_fd,4,2                 ## @changer_fd
	.comm	_CHIOGPICKER,4,2                ## @CHIOGPICKER
L_.str.1:                               ## @.str.1
	.asciz	"%s: CHIOGPICKER"

	.comm	_changer_name,8,3               ## @changer_name
L_.str.2:                               ## @.str.2
	.asciz	"%s: current picker: %d\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"usage: %s %s\n"

	.no_dead_strip	_do_getpicker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_getpicker
_do_getpicker:                          ; @do_getpicker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #1
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _changer_fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _changer_fd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CHIOGPICKER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHIOGPICKER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
Lloh6:
	adrp	x19, _changer_name@GOTPAGE
Lloh7:
	ldr	x19, [x19, _changer_name@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x2, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	x1, [x19]
	ldr	w2, [sp, #12]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x19, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warnx
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	bl	_getprogname
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_fprintf
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no arguments expected"

	.comm	_changer_fd,4,2                 ; @changer_fd
	.comm	_CHIOGPICKER,4,2                ; @CHIOGPICKER
l_.str.1:                               ; @.str.1
	.asciz	"%s: CHIOGPICKER"

	.comm	_changer_name,8,3               ; @changer_name
l_.str.2:                               ; @.str.2
	.asciz	"%s: current picker: %d\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"usage: %s %s\n"

	.no_dead_strip	_do_getpicker
.subsections_via_symbols
