	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_w_page
_reg_w_page:                            ## @reg_w_page
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	js	LBB0_7
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.2:
	movq	%rsi, %r13
	movl	%edx, %r14d
	xorl	%ebx, %ebx
	movq	_SKIP@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rax
	cmpq	(%rdx), %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movl	16(%r15), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$1
	pushq	8(%r15)
	callq	_usb_control_msg
	movq	_SKIP@GOTPCREL(%rip), %rdx
	addq	$32, %rsp
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movq	(%r13,%rbx,8), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_pr_err
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKIP,8,3                       ## @SKIP
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg_w_page() failed index 0x%02x, value 0x%02x, error %d\n"

	.no_dead_strip	_reg_w_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_w_page
_reg_w_page:                            ; @reg_w_page
	.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
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_7
; %bb.1:
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x23, _SKIP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SKIP@GOTPAGEOFF]
Lloh2:
	adrp	x24, _USB_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _USB_DIR_OUT@GOTPAGEOFF]
	mov	w25, #500
Lloh4:
	adrp	x26, _USB_TYPE_VENDOR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh6:
	adrp	x27, _USB_RECIP_DEVICE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _USB_RECIP_DEVICE@GOTPAGEOFF]
	mov	w28, w2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x28, x21
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, x21, lsl #3]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	str	x8, [x9]
	ldr	w22, [x19, #16]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w3, w8, w9
	ldr	x6, [x19, #8]
	str	w25, [sp]
	mov	x0, x22
	mov	w2, #0
	mov	w4, #0
	mov	x5, x21
	mov	w7, #1
	bl	_usb_control_msg
	tbz	w0, #31, LBB0_3
; %bb.6:
	mov	x22, x0
	ldr	x2, [x20, x21, lsl #3]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x22
	bl	_pr_err
	str	w22, [x19]
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SKIP,8,3                       ; @SKIP
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg_w_page() failed index 0x%02x, value 0x%02x, error %d\n"

	.no_dead_strip	_reg_w_page
.subsections_via_symbols
