	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gth_master_set
_gth_master_set:                        ## @gth_master_set
	.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
	movl	%edx, %r15d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	_REG_GTH_SWDEST0@GOTPCREL(%rip), %rax
	movl	%esi, %ebx
	shrl	%ebx
	andl	$-4, %ebx
	addl	(%rax), %ebx
	leal	(,%rsi,4), %eax
	andb	$28, %al
	xorl	%r13d, %r13d
	cmpl	$256, %esi                      ## imm = 0x100
	movq	_REG_GTH_GSWTDEST@GOTPCREL(%rip), %rcx
	cmovael	(%rcx), %ebx
	movzbl	%al, %r12d
	cmovael	%r13d, %r12d
	movq	(%rdi), %rdi
	addq	%rbx, %rdi
	callq	_ioread32
	movl	$15, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%r15d, %edi
	orl	$8, %edi
	shll	%cl, %edi
	andl	%eax, %edx
	testl	%r15d, %r15d
	cmovsl	%r13d, %edi
	orl	%edx, %edi
	addq	(%r14), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GTH_SWDEST0,4,2            ## @REG_GTH_SWDEST0
	.comm	_REG_GTH_GSWTDEST,4,2           ## @REG_GTH_GSWTDEST
	.no_dead_strip	_gth_master_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gth_master_set
_gth_master_set:                        ; @gth_master_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _REG_GTH_SWDEST0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_GTH_SWDEST0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w9, w1, #1
	and	w9, w9, #0x7ffffffc
	add	w8, w8, w9
	ubfiz	w9, w1, #2, #3
Lloh3:
	adrp	x10, _REG_GTH_GSWTDEST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _REG_GTH_GSWTDEST@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w1, #255
	csel	w21, w10, w8, hi
	csel	w22, wzr, w9, hi
	ldr	x8, [x0]
	add	x0, x8, x21
	bl	_ioread32
	mov	w8, #15
	lsl	w8, w8, w22
	bic	w8, w0, w8
	orr	w9, w19, #0x8
	lsl	w9, w9, w22
	cmp	w19, #0
	csel	w9, wzr, w9, lt
	orr	w0, w8, w9
	ldr	x8, [x20]
	add	x1, x8, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iowrite32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GTH_SWDEST0,4,2            ; @REG_GTH_SWDEST0
	.comm	_REG_GTH_GSWTDEST,4,2           ; @REG_GTH_GSWTDEST
	.no_dead_strip	_gth_master_set
.subsections_via_symbols
